Handle cloning of uri's based on ssh aliases like host:repos

This commit is contained in:
Jacob Atzen
2010-08-17 10:09:23 +02:00
parent 0440cd672d
commit f9c351f941
2 changed files with 9 additions and 0 deletions

View File

@@ -30,6 +30,9 @@ class Homesick < Thor
elsif uri =~ /\/([^\/]*)(\.git)?\Z/
destination = Pathname.new($1)
git_clone uri
elsif uri =~ /[^:]+:([^:]+)(\.git)?\Z/
destination = Pathname.new($1)
git_clone uri
else
raise "Unknown URI format: #{uri}"
end