Commit b284495e authored by Dennis Kaarsemaker's avatar Dennis Kaarsemaker Committed by Junio C Hamano

push: test pushing ambiguously named branches

Signed-off-by: Dennis Kaarsemaker's avatarDennis Kaarsemaker <[email protected]>
Signed-off-by: default avatarJunio C Hamano <[email protected]>
parent eef2bdaa
......@@ -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 &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment