mirror of
https://github.com/git/git.git
synced 2025-03-23 02:16:31 +00:00
push: test pushing ambiguously named branches
Signed-off-by: Dennis Kaarsemaker <dennis@kaarsemaker.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
eef2bdaa4a
commit
b284495e93
@ -98,6 +98,16 @@ test_expect_success 'push from/to new branch with upstream, matching and simple'
|
||||
test_push_failure upstream
|
||||
'
|
||||
|
||||
test_expect_success 'push ambiguously named branch with upstream, matching and simple' '
|
||||
git checkout -b ambiguous &&
|
||||
test_config branch.ambiguous.remote parent1 &&
|
||||
test_config branch.ambiguous.merge refs/heads/ambiguous &&
|
||||
git tag ambiguous &&
|
||||
test_push_success simple ambiguous &&
|
||||
test_push_success matching ambiguous &&
|
||||
test_push_success upstream ambiguous
|
||||
'
|
||||
|
||||
test_expect_success 'push from/to new branch with current creates remote branch' '
|
||||
test_config branch.new-branch.remote repo1 &&
|
||||
git checkout new-branch &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user