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