summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xt/t7501-commit.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh
index f04798f872..94eec83b37 100755
--- a/t/t7501-commit.sh
+++ b/t/t7501-commit.sh
@@ -57,6 +57,7 @@ test_expect_success 'using invalid commit with -C' '
'
test_expect_success 'nothing to commit' '
+ git reset --hard &&
test_must_fail git commit -m initial
'