tests: add test for open.default.remote configuration (#226)

Co-authored-by: Sam Bo <agent@openclaw.ai>
This commit is contained in:
Sam Saccone 2026-02-14 07:21:58 -08:00 committed by GitHub
parent 477b196a1d
commit f4832493a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
##