Fix git_clone to work with github URLs like https://github.com/technicalpickles/dotpickles

This commit is contained in:
Josh Nichols
2012-12-09 15:33:15 -05:00
committed by thilko
parent 1df44aea40
commit 107dec388e

View File

@@ -5,7 +5,7 @@ class Homesick
def git_clone(repo, config = {})
config ||= {}
destination = config[:destination] || begin
repo =~ /([^\/]+)\.git$/
repo =~ /([^\/]+)(?:\.git)?$/
$1
end