Skip to content

Commit

Permalink
t3200-branch: test -M
Browse files Browse the repository at this point in the history
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Michael J Gruber authored and Junio C Hamano committed Dec 4, 2014
1 parent 7fa1365 commit ff7aa81
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions t/t3200-branch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit ff7aa81

Please sign in to comment.