Skip to content

Commit 0189cae

Browse files
committed
Open bitbucket with the right branch
replace from `?at` to `/` for `providerBranchRef`
1 parent 3e8c908 commit 0189cae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-open

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ fi
187187

188188
if [[ "$domain" == 'bitbucket.org' ]]; then
189189
# Bitbucket, see https://github.com/paulirish/git-open/issues/80 for why ?at is needed.
190-
providerBranchRef="/src?at=$remote_ref"
190+
providerBranchRef="/src/$remote_ref"
191191
elif [[ "${#pathargs[@]}" -ge 3 && ${pathargs[${#pathargs[@]} - 3]} == 'scm' ]]; then
192192
# Bitbucket server always has /scm/ as the third to last segment in the url path, e.g. /scm/ppp/test-repo.git
193193
# Anything before the 'scm' is part of the server's root context

0 commit comments

Comments
 (0)