Skip to content

Commit b284495

Browse files
seveasgitster
authored andcommitted
push: test pushing ambiguously named branches
Signed-off-by: Dennis Kaarsemaker <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent eef2bda commit b284495

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

t/t5528-push-default.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,16 @@ test_expect_success 'push from/to new branch with upstream, matching and simple'
9898
test_push_failure upstream
9999
'
100100

101+
test_expect_success 'push ambiguously named branch with upstream, matching and simple' '
102+
git checkout -b ambiguous &&
103+
test_config branch.ambiguous.remote parent1 &&
104+
test_config branch.ambiguous.merge refs/heads/ambiguous &&
105+
git tag ambiguous &&
106+
test_push_success simple ambiguous &&
107+
test_push_success matching ambiguous &&
108+
test_push_success upstream ambiguous
109+
'
110+
101111
test_expect_success 'push from/to new branch with current creates remote branch' '
102112
test_config branch.new-branch.remote repo1 &&
103113
git checkout new-branch &&

0 commit comments

Comments
 (0)