Skip to content

Commit ff7aa81

Browse files
Michael J Grubergitster
authored andcommitted
t3200-branch: test -M
Signed-off-by: Michael J Gruber <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7fa1365 commit ff7aa81

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

t/t3200-branch.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,15 @@ test_expect_success 'git branch -m o/o o should fail when o/p exists' '
9797
test_must_fail git branch -m o/o o
9898
'
9999

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+
100109
test_expect_success 'git branch -m q r/q should fail when r exists' '
101110
git branch q &&
102111
git branch r &&

0 commit comments

Comments
 (0)