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