From 376fd88fc956885fb41587c7e70c097e54b174b8 Mon Sep 17 00:00:00 2001 From: Josh Nichols Date: Sun, 9 Dec 2012 15:33:15 -0500 Subject: [PATCH] Fix git_clone to work with github URLs like https://github.com/technicalpickles/dotpickles --- lib/homesick/actions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/homesick/actions.rb b/lib/homesick/actions.rb index 603ad68..1d4e618 100644 --- a/lib/homesick/actions.rb +++ b/lib/homesick/actions.rb @@ -4,7 +4,7 @@ class Homesick def git_clone(repo, config = {}) config ||= {} destination = config[:destination] || begin - repo =~ /([^\/]+)\.git$/ + repo =~ /([^\/]+)(?:\.git)?$/ $1 end