OSDN Git Service

t3200-branch: test -M
authorMichael J Gruber <git@drmicha.warpmail.net>
Thu, 4 Dec 2014 13:26:44 +0000 (14:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 4 Dec 2014 20:10:52 +0000 (12:10 -0800)
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3200-branch.sh

index ac31b71..c08aef4 100755 (executable)
@@ -97,6 +97,15 @@ test_expect_success 'git branch -m o/o o should fail when o/p exists' '
        test_must_fail git branch -m o/o o
 '
 
+test_expect_success 'git branch -m o/q o/p should fail when o/p exists' '
+       git branch o/q &&
+       test_must_fail git branch -m o/q o/p
+'
+
+test_expect_success 'git branch -M o/q o/p should work when o/p exists' '
+       git branch -M o/q o/p
+'
+
 test_expect_success 'git branch -m q r/q should fail when r exists' '
        git branch q &&
        git branch r &&