mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-10 07:26:15 -04:00
tests: add test for open.default.remote configuration (#226)
Co-authored-by: Sam Bo <agent@openclaw.ai>
This commit is contained in:
parent
477b196a1d
commit
f4832493a0
|
|
@ -248,6 +248,14 @@ setup() {
|
|||
assert_output "http://github.com/user/repo"
|
||||
}
|
||||
|
||||
@test "basic: open.default.remote configuration" {
|
||||
git remote set-url origin "git@github.com:paulirish/git-open.git"
|
||||
git remote add upstream "git@github.com:upstreamorg/repo.git"
|
||||
git config --local open.default.remote upstream
|
||||
run ../git-open
|
||||
assert_output "https://github.com/upstreamorg/repo"
|
||||
}
|
||||
|
||||
##
|
||||
## SSH config
|
||||
##
|
||||
|
|
|
|||
Loading…
Reference in a new issue