Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

allow git url to not contain .git add the end

  • Loading branch information...
commit 50471f949c7cf0ceb7efdaa8c73249da463116b5 1 parent b22869b
@tongueroo tongueroo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/gitcycle.rb
View
2  lib/gitcycle.rb
@@ -816,7 +816,7 @@ def load_git
path = git_config_path(Dir.pwd)
if path
@git_url = File.read(path).match(/\[remote "origin"\][^\[]*url = ([^\n]+)/m)[1]
- @git_repo = @git_url.match(/\/(.+)\./)[1]
+ @git_repo = @git_url.match(/\/(.+)/)[1].sub(/.git$/,'')
@git_login = @git_url.match(/:(.+)\//)[1]
@login, @token = @config["#{@git_login}/#{@git_repo}"] rescue [ nil, nil ]
end
Please sign in to comment.
Something went wrong with that request. Please try again.