]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5401-update-hooks.sh
test-lib-functions: add and use a "test_hook" wrapper
[thirdparty/git.git] / t / t5401-update-hooks.sh
index 6012cc8172a6bd6e9acad5fc84ddb87cb67815b9..799349a416c90ec37781332bf25981bbb925923d 100755 (executable)
@@ -136,7 +136,7 @@ test_expect_success 'send-pack stderr contains hook messages' '
 '
 
 test_expect_success 'pre-receive hook that forgets to read its input' '
-       write_script victim.git/hooks/pre-receive <<-\EOF &&
+       test_hook --clobber -C victim.git pre-receive <<-\EOF &&
        exit 0
        EOF
        rm -f victim.git/hooks/update victim.git/hooks/post-update &&