mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-10 07:26:15 -04:00
add branch test for bb server.
This commit is contained in:
parent
c61e42e00a
commit
c1564ab641
|
|
@ -201,6 +201,18 @@ setup() {
|
|||
assert_output "https://mybb.domain.com/git/projects/ppp/repos/rrr"
|
||||
}
|
||||
|
||||
@test "bitbucket: Bitbucket Server branch" {
|
||||
# https://github.com/paulirish/git-open/issues/80
|
||||
git remote set-url origin "https://user@mybb.domain.com/git/scm/ppp/rrr.git"
|
||||
git checkout -B "develop"
|
||||
run ../git-open
|
||||
|
||||
# The following query args work with BB Server:
|
||||
# at=refs%2Fheads%2Fdevelop, at=develop, at=refs/heads/develop
|
||||
# However /src/develop does not (unlike bitbucket.org)
|
||||
assert_output "https://mybb.domain.com/git/projects/ppp/repos/rrr?at=develop"
|
||||
}
|
||||
|
||||
|
||||
##
|
||||
## GitLab
|
||||
|
|
|
|||
Loading…
Reference in a new issue