Skip to content

Commit

Permalink
fix(bin/git-browse): fix bitbucket url
Browse files Browse the repository at this point in the history
  • Loading branch information
pbnj committed Jun 10, 2022
1 parent 006549d commit 8a6e39d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git-browse
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ elif [[ $remote_url =~ bitbucket ]]; then
# construct bitbucket urls
# https://bitbucket.org/<user_or_org>/<repo>/src/<commit_or_branch>/<filename>#lines-<line1>:<line2>
if [[ -n ${filename} ]]; then
url=${url}/blob/${commit_hash:-${branch}}/${filename}
url=${url}/src/${commit_hash:-${branch}}/${filename}
if [[ -n "${line1}" ]]; then
url="${url}#lines-${line1}"
if [[ -n "${line2}" ]]; then
Expand Down

0 comments on commit 8a6e39d

Please sign in to comment.