Add shortcut in refresh_cache_ent() for marked entries.
[gitweb.git] / t / t7502-commit.sh
index 0b1db406a78333c771fc293c657c19a7ef1c7fc7..3531a992a9a50e25a1585435e024097c7028af27 100755 (executable)
@@ -166,6 +166,23 @@ test_expect_success 'author different from committer' '
        test_cmp expect actual
 '
 
+mv expect expect.tmp
+sed '$d' < expect.tmp > expect
+rm -f expect.tmp
+echo "# Committer:
+#" >> expect
+unset GIT_COMMITTER_EMAIL
+unset GIT_COMMITTER_NAME
+
+test_expect_success 'committer is automatic' '
+
+       echo >>negative &&
+       git commit -e -m "sample"
+       head -n 8 .git/COMMIT_EDITMSG | \
+       sed "s/^# Committer: .*/# Committer:/" >actual &&
+       test_cmp expect actual
+'
+
 pwd=`pwd`
 cat >> .git/FAKE_EDITOR << EOF
 #! /bin/sh