]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5411/test-0021-report-ng--porcelain.sh
Merge branch 'gc/branch-recurse-submodules-fix'
[thirdparty/git.git] / t / t5411 / test-0021-report-ng--porcelain.sh
index 2a392e099b9ffdb6705749876b69039a83670e68..502b34fe3dd723f8c469cc113e2cca29d1b59f2f 100644 (file)
@@ -1,5 +1,5 @@
 test_expect_success "setup proc-receive hook (ng, no message, $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 "ng refs/for/main/topic"
@@ -32,7 +32,7 @@ test_expect_success "proc-receive: fail to update (ng, no message, $PROTOCOL/por
 '
 
 test_expect_success "setup proc-receive hook (ng message, $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 "ng refs/for/main/topic error msg"