push: test pushing ambiguously named branches
Signed-off-by: Dennis Kaarsemaker <dennis@kaarsemaker.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Dennis Kaarsemaker committed
Oct 31, 2016 at 21:38 UTC
b284495e93394394f7c7923f6d646947844cec04
1 file changed
+10
t/t5528-push-default.sh
+10
@@ -98,6 +98,16 @@ test_expect_success 'push from/to new branch with upstream, matching and simple'
98
test_push_failure upstream
99
'
100
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
+
111
test_expect_success 'push from/to new branch with current creates remote branch' '
112
test_config branch.new-branch.remote repo1 &&
113
git checkout new-branch &&