From aa95ffac82249d7837a8a6025619a61e68151d7a Mon Sep 17 00:00:00 2001 From: bcd87 Date: Mon, 23 Sep 2013 20:30:10 +0200 Subject: [PATCH] Using the homesick clone github shortcut now clones to ~/.homesick/repos/repo/, in stead of ~/.homesick/repos/username/repo/ --- lib/homesick.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/homesick.rb b/lib/homesick.rb index 74a9e88..d09ceb8 100644 --- a/lib/homesick.rb +++ b/lib/homesick.rb @@ -33,7 +33,7 @@ class Homesick < Thor ln_s uri, destination 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 elsif uri =~ /%r([^%r]*?)(\.git)?\Z/ destination = Pathname.new($1)