lib/git/multi.rb in git-multi-1.0.0 vs lib/git/multi.rb in git-multi-1.0.1
- old
+ new
@@ -117,10 +117,12 @@
project.parent_dir = Pathname.new(File.join(WORKAREA, project.owner.login))
project.local_path = Pathname.new(File.join(WORKAREA, project.full_name))
project.fractional_index = "#{index + 1}/#{projects.count}"
# fix 'project' => https://github.com/octokit/octokit.rb/issues/727
project.compliant_ssh_url = 'ssh://%s/%s' % project.ssh_url.split(':', 2)
+ # remove optional '.git' suffix from 'git@github.com:pvdb/git-multi.git'
+ project.abbreviated_ssh_url = project.ssh_url.chomp('.git')
# extend 'project' with 'just do it' capabilities
project.extend Nike
end
end
else
@@ -167,9 +169,10 @@
origin_url = `git -C #{project.local_path} config --get remote.origin.url`.chomp
![
project.clone_url,
project.ssh_url,
project.compliant_ssh_url,
+ project.abbreviated_ssh_url,
project.git_url,
].include? origin_url
}
end