t3200-branch: test -M
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael J Gruber committed
Dec 4, 2014 at 14:26 UTC
ff7aa81f8971daf29826b3881e0e2df5bd7df90c
1 file changed
+9
t/t3200-branch.sh
+9
@@ -97,6 +97,15 @@ test_expect_success 'git branch -m o/o o should fail when o/p exists' '
97
test_must_fail git branch -m o/o o
98
'
99
100
+test_expect_success 'git branch -m o/q o/p should fail when o/p exists' '
101
+ git branch o/q &&
102
+ test_must_fail git branch -m o/q o/p
103
+'
104
+
105
+test_expect_success 'git branch -M o/q o/p should work when o/p exists' '
106
+ git branch -M o/q o/p
107
+'
108
+
109
test_expect_success 'git branch -m q r/q should fail when r exists' '
110
git branch q &&
111
git branch r &&