]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5411/test-0025-report-unknown-ref--porcelain.sh
proc-receive hook tests: use "test_hook" instead of "write_script"
[thirdparty/git.git] / t / t5411 / test-0025-report-unknown-ref--porcelain.sh
index 99601ca321f1ceeac4141007f9e3f5cd32a4295f..8b3f5d05a3fab60ac70a88a019978ccd02bbb9f2 100644 (file)
@@ -1,5 +1,5 @@
 test_expect_success "setup proc-receive hook (unexpected ref, $PROTOCOL/porcelain)" '
-       write_script "$upstream/hooks/proc-receive" <<-EOF
+       test_hook -C "$upstream" --clobber proc-receive <<-\EOF
        printf >&2 "# proc-receive hook\n"
        test-tool proc-receive -v \
                -r "ok refs/for/main/topic"