diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
index fdeb1f529ce14d5500976c0e5683c3cbc2fa3501..25e9971fd86af10c1031f4e8061c31a0c80725a7 100755 (executable)
--- a/t/t3200-branch.sh
+++ b/t/t3200-branch.sh
"test $(git config branch.s.dummy) = Hello &&
test_must_fail git config branch.s/s/dummy"
-test_expect_success 'renaming a symref' \
+test_expect_success 'renaming a symref is not allowed' \
'
git symbolic-ref refs/heads/master2 refs/heads/master &&
- git branch -m master2 master3 &&
- git symbolic-ref refs/heads/master3 &&
+ test_must_fail git branch -m master2 master3 &&
+ git symbolic-ref refs/heads/master2 &&
test -f .git/refs/heads/master &&
- ! test -f .git/refs/heads/master2
+ ! test -f .git/refs/heads/master3
'
test_expect_success \