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
parent d084128297
commit 376fd88fc9

View File

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