File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 186186fi
187187
188188if [[ " $domain " == ' bitbucket.org' ]]; then
189- # Bitbucket, see https://github.com/paulirish/git-open/issues/80 for why ?at is needed.
190- providerBranchRef=" /src?at=$remote_ref "
189+ providerBranchRef=" /src/$remote_ref "
191190elif [[ " ${# pathargs[@]} " -ge 3 && ${pathargs[${#pathargs[@]} - 3]} == ' scm' ]]; then
192191 # Bitbucket server always has /scm/ as the third to last segment in the url path, e.g. /scm/ppp/test-repo.git
193192 # Anything before the 'scm' is part of the server's root context
Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ setup() {
360360 git commit -m a
361361 git checkout mytag
362362 run ../git-open
363- assert_output " https://bitbucket.org/paulirish/crbug-extension/src?at= mytag"
363+ assert_output " https://bitbucket.org/paulirish/crbug-extension/src/ mytag"
364364}
365365
366366@test " bitbucket: non-origin remote" {
@@ -376,7 +376,7 @@ setup() {
376376 git checkout -B " devel"
377377 run ../git-open
378378 refute_output --partial " //kisom"
379- assert_output " https://bitbucket.org/kisom/consbri/src?at= devel"
379+ assert_output " https://bitbucket.org/kisom/consbri/src/ devel"
380380}
381381
382382@test " bitbucket: open source view with a slash/branch" {
@@ -385,9 +385,7 @@ setup() {
385385 git remote set-url origin " https://bitbucket.org/guyzmo/git-repo.git"
386386 git checkout -B " bugfix/conftest_fix"
387387 run ../git-open
388- assert_output --partial " https://bitbucket.org/guyzmo/git-repo/src"
389- # BB appears to be fine with both literal or URL-encoded forward slash
390- assert_output --partial " ?at=bugfix/conftest_fix"
388+ assert_output " https://bitbucket.org/guyzmo/git-repo/src/bugfix/conftest_fix"
391389}
392390
393391@test " bitbucket: ssh:// clone urls" {
You can’t perform that action at this time.
0 commit comments