lib/gito/project.rb in gito-0.4.12 vs lib/gito/project.rb in gito-0.4.13
- old
+ new
@@ -72,19 +72,20 @@
def retrieve_cloneable_url
starts_with_git = @base_url.split(//).first(4).join.eql? 'git@'
ends_with_git = @base_url.split(//).last(4).join.eql? '.git'
- return "git@github.com:#{@base_url}.git" if @base_url.split('/').length == 2
+ return "git@github.com:#{@base_url}.git" if @base_url.split('/').length == 2 && !@base_url.include?("@")
# ends with git but doesnt start with git
return @base_url if ends_with_git && !starts_with_git
user_repo_pair = @base_url.split('https://github.com/').last
# ends with git but doesnt start with git
return "git@github.com:#{user_repo_pair}.git" if !ends_with_git && !starts_with_git
+ # git@github.com:sky-uk/uma-skyq-android.git
@base_url
end
##
## CLONE THE REPOSITORY