Using the homesick clone github shortcut now clones to ~/.homesick/repos/repo/, in stead of ~/.homesick/repos/username/repo/

This commit is contained in:
bcd87
2013-09-23 20:30:10 +02:00
committed by thilko
parent 0d48e517f8
commit 0e6915b860

View File

@@ -34,7 +34,7 @@ class Homesick < Thor
ln_s uri, destination ln_s uri, destination
elsif uri =~ GITHUB_NAME_REPO_PATTERN elsif uri =~ GITHUB_NAME_REPO_PATTERN
destination = Pathname.new($1) destination = Pathname.new($1.split("/")[1])
git_clone "https://github.com/#{$1}.git", :destination => destination git_clone "https://github.com/#{$1}.git", :destination => destination
elsif uri =~ /%r([^%r]*?)(\.git)?\Z/ elsif uri =~ /%r([^%r]*?)(\.git)?\Z/
destination = Pathname.new($1) destination = Pathname.new($1)