mirror of
https://github.com/adusak/bitbucket-git-helpers.plugin.zsh.git
synced 2026-03-27 11:51:02 +01:00
Fix error in url by replacing : with /
This commit is contained in:
@@ -22,7 +22,7 @@ def construct_PR_URL
|
|||||||
puts "only works for repositories with their origin remote on bitbucket.org"
|
puts "only works for repositories with their origin remote on bitbucket.org"
|
||||||
exit 1
|
exit 1
|
||||||
end
|
end
|
||||||
return "https://#{remote[bbloc..-5]}/pull-requests/new?source=#{git_branch()}&t=1"
|
return "https://#{remote[bbloc..-5].sub(':','/')}/pull-requests/new?source=#{git_branch()}&t=1"
|
||||||
end
|
end
|
||||||
|
|
||||||
if ARGV.length > 0
|
if ARGV.length > 0
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ def construct_PR_list_URL
|
|||||||
puts "Only works for repositories with their origin remote on bitbucket.org"
|
puts "Only works for repositories with their origin remote on bitbucket.org"
|
||||||
exit 1
|
exit 1
|
||||||
end
|
end
|
||||||
return "https://#{remote[bbloc..-5]}/pull-requests/"
|
return "https://#{remote[bbloc..-5].sub(':','/')}/pull-requests/"
|
||||||
end
|
end
|
||||||
|
|
||||||
if ARGV.length > 0
|
if ARGV.length > 0
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ def constructURL
|
|||||||
puts "git-bb-open only works for repositories with their origin remote on bitbucket.org"
|
puts "git-bb-open only works for repositories with their origin remote on bitbucket.org"
|
||||||
exit 1
|
exit 1
|
||||||
end
|
end
|
||||||
url_prefix="https://#{remote[bbloc..-5]}/src/#{git_commit}"
|
url_prefix="https://#{remote[bbloc..-5].sub(':','/')}/src/#{git_commit}"
|
||||||
root = Pathname.new(git_root())
|
root = Pathname.new(git_root())
|
||||||
pwd = Pathname.new(Dir.pwd())
|
pwd = Pathname.new(Dir.pwd())
|
||||||
if ARGV.length == 1
|
if ARGV.length == 1
|
||||||
|
|||||||
Reference in New Issue
Block a user