Suggest use of "git add file1 file2" when there is nothing to commit.
[gitweb.git] / t / t3200-branch.sh
index afaa8536a9342d6597e82dc8b96ad8b9becafad6..5782c30b03a7e7bb7d244d305e13e856eed40a89 100755 (executable)
@@ -104,4 +104,11 @@ test_expect_success \
         git-branch -m s/s s &&
         test -f .git/logs/refs/heads/s'
 
+test_expect_failure \
+    'git-branch -m u v should fail when the reflog for u is a symlink' \
+    'git-branch -l u &&
+     mv .git/logs/refs/heads/u real-u &&
+     ln -s real-u .git/logs/refs/heads/u &&
+     git-branch -m u v'
+
 test_done