Fix git_clone to work with github URLs like https://github.com/technicalpickles/dotpickles
This commit is contained in:
@@ -4,7 +4,7 @@ class Homesick
|
||||
def git_clone(repo, config = {})
|
||||
config ||= {}
|
||||
destination = config[:destination] || begin
|
||||
repo =~ /([^\/]+)\.git$/
|
||||
repo =~ /([^\/]+)(?:\.git)?$/
|
||||
$1
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user