]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t7503-pre-commit-hook.sh
Merge branch 'maint-1.6.2' into maint
[git.git] / t / t7503-pre-commit-hook.sh
index 2dd5a5e30279e6c3e5ac2be9425c19328a65aff1..8528f64c8d1491fd3c279f030b6f8aee2050cdf7 100755 (executable)
@@ -56,7 +56,7 @@ test_expect_success 'with failing hook' '
 
        echo "another" >> file &&
        git add file &&
-       ! git commit -m "another"
+       test_must_fail git commit -m "another"
 
 '
 
@@ -69,7 +69,7 @@ test_expect_success '--no-verify with failing hook' '
 '
 
 chmod -x "$HOOK"
-test_expect_success 'with non-executable hook' '
+test_expect_success POSIXPERM 'with non-executable hook' '
 
        echo "content" >> file &&
        git add file &&
@@ -77,7 +77,7 @@ test_expect_success 'with non-executable hook' '
 
 '
 
-test_expect_success '--no-verify with non-executable hook' '
+test_expect_success POSIXPERM '--no-verify with non-executable hook' '
 
        echo "more content" >> file &&
        git add file &&