mirror of
https://github.com/adusak/bitbucket-git-helpers.plugin.zsh.git
synced 2026-01-11 11:20:23 +01:00
Update bbhelpers.rb
This commit is contained in:
@@ -21,7 +21,7 @@ end
|
||||
|
||||
def repo_url
|
||||
remote = git_remote
|
||||
url_parts = remote[remote.index("@")+1..remote.index(".git")-1].split("/")
|
||||
parts = remote[remote.index("@")+1..remote.index(".git")-1].split("/")
|
||||
if remote.index("ssh") == 0
|
||||
return "#{parts[0]}/projects/#{parts[1]}/repos/#{parts[2]}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user