From 0189caeb4b44054b2c3889315203b62279f34784 Mon Sep 17 00:00:00 2001 From: Heechul Ryu Date: Fri, 1 May 2020 09:37:02 +0100 Subject: [PATCH] Open bitbucket with the right branch replace from `?at` to `/` for `providerBranchRef` --- git-open | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-open b/git-open index b7b55cb..7ecc89b 100755 --- a/git-open +++ b/git-open @@ -187,7 +187,7 @@ fi if [[ "$domain" == 'bitbucket.org' ]]; then # Bitbucket, see https://github.com/paulirish/git-open/issues/80 for why ?at is needed. - providerBranchRef="/src?at=$remote_ref" + providerBranchRef="/src/$remote_ref" elif [[ "${#pathargs[@]}" -ge 3 && ${pathargs[${#pathargs[@]} - 3]} == 'scm' ]]; then # Bitbucket server always has /scm/ as the third to last segment in the url path, e.g. /scm/ppp/test-repo.git # Anything before the 'scm' is part of the server's root context