diff --git a/lib/homesick/actions.rb b/lib/homesick/actions.rb index 603ad68..1d4e618 100644 --- a/lib/homesick/actions.rb +++ b/lib/homesick/actions.rb @@ -4,7 +4,7 @@ class Homesick def git_clone(repo, config = {}) config ||= {} destination = config[:destination] || begin - repo =~ /([^\/]+)\.git$/ + repo =~ /([^\/]+)(?:\.git)?$/ $1 end