]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t7503-pre-commit-hook.sh
t/: Use "test_must_fail git" instead of "! git"
[thirdparty/git.git] / t / t7503-pre-commit-hook.sh
index d787cac2f7c09c0d84cb4cdfdf68401b660d3c6c..b06909599564a1c8afa027b0f9c71ef6bb61d6e4 100755 (executable)
@@ -52,11 +52,11 @@ cat > "$HOOK" <<EOF
 exit 1
 EOF
 
-test_expect_failure 'with failing hook' '
+test_expect_success 'with failing hook' '
 
        echo "another" >> file &&
        git add file &&
-       git commit -m "another"
+       test_must_fail git commit -m "another"
 
 '