From ff7aa81f8971daf29826b3881e0e2df5bd7df90c Mon Sep 17 00:00:00 2001 From: Michael J Gruber Date: Thu, 4 Dec 2014 14:26:44 +0100 Subject: t3200-branch: test -M Signed-off-by: Michael J Gruber Signed-off-by: Junio C Hamano diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh index ac31b71..c08aef4 100755 --- a/t/t3200-branch.sh +++ b/t/t3200-branch.sh @@ -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 && -- cgit v0.10.2-6-g49f6