From 0e6915b8601dd0475f23275d41d57e3468f61c49 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 7fe7842..4620765 100644 --- a/lib/homesick.rb +++ b/lib/homesick.rb @@ -34,7 +34,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)