@@ -214,22 +214,6 @@ setup() {
214
214
refute_output --partial " @"
215
215
}
216
216
217
- @test " bitbucket server" {
218
- # https://github.com/paulirish/git-open/pull/15
219
- git remote set-url origin
" https://[email protected] /scm/ppp/test-repo.git"
220
- run ../git-open
221
- assert_output " https://bitbucket.example.com/projects/ppp/repos/test-repo"
222
- }
223
-
224
- @test " bitbucket server branch" {
225
- # https://github.com/paulirish/git-open/pull/15
226
- git remote set-url origin
" https://[email protected] /scm/ppp/test-repo.git"
227
- git checkout -B " bb-server"
228
- run ../git-open
229
- assert_output " https://bitbucket.example.com/projects/ppp/repos/test-repo/browse?at=bb-server"
230
- }
231
-
232
-
233
217
@test " bitbucket: Bitbucket Server" {
234
218
# https://github.com/paulirish/git-open/issues/77#issuecomment-309044010
235
219
git remote set-url origin
" https://[email protected] /scm/ppp/rrr.git"
@@ -270,19 +254,23 @@ setup() {
270
254
}
271
255
272
256
273
- @test " bitbucket server with different root context" {
257
+ @test " bitbucket: Bitbucket Server with different root context" {
274
258
# https://github.com/paulirish/git-open/pull/15
275
259
git remote set-url origin
" https://[email protected] /git/scm/ppp/test-repo.git"
276
260
run ../git-open
277
- assert_output " https://bitbucket.example.com/git/projects/ppp/repos/test-repo"
261
+ assert_output " https://bitbucket.example.com/git/projects/ppp/repos/test-repo" ||
262
+ assert_output " https://bitbucket.example.com/git/projects/ppp/repos/test-repo/?at=master" ||
263
+ assert_output " https://bitbucket.example.com/git/projects/ppp/repos/test-repo/?at=refs%2Fheads%2Fmaster"
278
264
}
279
265
280
266
281
- @test " bitbucket server with different root context with multiple parts" {
267
+ @test " bitbucket: Bitbucket Server with different root context with multiple parts" {
282
268
# https://github.com/paulirish/git-open/pull/15
283
269
git remote set-url origin
" https://[email protected] /really/long/root/context/scm/ppp/test-repo.git"
284
270
run ../git-open
285
- assert_output " https://bitbucket.example.com/really/long/root/context/projects/ppp/repos/test-repo"
271
+ assert_output " https://bitbucket.example.com/really/long/root/context/projects/ppp/repos/test-repo" ||
272
+ assert_output " https://bitbucket.example.com/really/long/root/context/projects/ppp/repos/test-repo/?at=master" ||
273
+ assert_output " https://bitbucket.example.com/really/long/root/context/projects/ppp/repos/test-repo/?at=refs%2Fheads%2Fmaster"
286
274
}
287
275
288
276
@@ -294,7 +282,6 @@ setup() {
294
282
assert_output " https://mybb.domain.com/root/context/projects/~first.last/repos/rrr/browse?at=develop" ||
295
283
assert_output " https://mybb.domain.com/root/context/projects/~first.last/repos/rrr/browse?at=refs%2Fheads%2Fdevelop" ||
296
284
assert_output " https://mybb.domain.com/root/context/projects/~first.last/repos/rrr/browse?at=refs/heads/develop"
297
-
298
285
}
299
286
300
287
0 commit comments