From 2667053fde18bdd73f6d3c9af777c23660de6ebf Mon Sep 17 00:00:00 2001 From: Jorge Date: Sat, 30 Oct 2010 21:31:59 +0200 Subject: [PATCH] Making git repos uri non greedy so it works with uris with / --- lib/homesick.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/homesick.rb b/lib/homesick.rb index ce05897..7646ff9 100644 --- a/lib/homesick.rb +++ b/lib/homesick.rb @@ -33,7 +33,7 @@ class Homesick < Thor elsif uri =~ GITHUB_NAME_REPO_PATTERN destination = Pathname.new($1) git_clone "git://github.com/#{$1}.git", :destination => destination - elsif uri =~ /\/([^\/]*)(\.git)?\Z/ + elsif uri =~ /\/([^\/]*?)(\.git)?\Z/ destination = Pathname.new($1) git_clone uri elsif uri =~ /[^:]+:([^:]+)(\.git)?\Z/