mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
fix(bin/git-browse): fix bitbucket url
This commit is contained in:
parent
006549d661
commit
8a6e39d589
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue