We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fa1365 commit ff7aa81Copy full SHA for ff7aa81
t/t3200-branch.sh
@@ -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 &&
0 commit comments