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 = {})
|
def git_clone(repo, config = {})
|
||||||
config ||= {}
|
config ||= {}
|
||||||
destination = config[:destination] || begin
|
destination = config[:destination] || begin
|
||||||
repo =~ /([^\/]+)\.git$/
|
repo =~ /([^\/]+)(?:\.git)?$/
|
||||||
$1
|
$1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user