t7501: test the right kind of breakage
[gitweb.git] / t / t7501-commit.sh
index 8bb38337a9796142bc091c2b108f7f9e79b0f377..45446b186e7856bcc829a98e60f9d59c493d8630 100755 (executable)
@@ -30,10 +30,12 @@ test_expect_success 'setup: initial commit' '
 '
 
 test_expect_success '-m and -F do not mix' '
+       git checkout HEAD file && echo >>file && git add file &&
        test_must_fail git commit -m foo -m bar -F file
 '
 
 test_expect_success '-m and -C do not mix' '
+       git checkout HEAD file && echo >>file && git add file &&
        test_must_fail git commit -C HEAD -m illegal
 '