From 107dec388e7fb1d0be9dc810ff610cd33439f840 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 b06fc7e..060d266 100644 --- a/lib/homesick/actions.rb +++ b/lib/homesick/actions.rb @@ -5,7 +5,7 @@ class Homesick def git_clone(repo, config = {}) config ||= {} destination = config[:destination] || begin - repo =~ /([^\/]+)\.git$/ + repo =~ /([^\/]+)(?:\.git)?$/ $1 end