]> git.ipfire.org Git - thirdparty/git.git/commit - t/t9001-send-email.sh
tests: change "mkdir -p && write_script" to use "test_hook"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 17 Mar 2022 10:13:14 +0000 (11:13 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Mar 2022 15:40:26 +0000 (08:40 -0700)
commitbef805b7d8eed8ab5ee20128acf636a95bcba1f2
tree2ae941a9b1cf89f1fe81ce76b6d1a47151f8f28c
parent60a8a6bf6cf2cd7c8c0524c711df50dd5c2ace4f
tests: change "mkdir -p && write_script" to use "test_hook"

Change tests that used a "mkdir -p .git/hooks && write_script" pattern
to use the new "test_hook" helper instead. The new helper does not
create the .git/hooks directory, rather we assume that the default
template will do so for us.

An upcoming series[1] will extend "test_hook" to operate in a
"--template=" mode, but for now assuming that we have a .git/hooks
already is a safe assumption. If that assumption becomes false in the
future we'll only need to change 'test_hook", instead of all of these
callsites.

1. https://lore.kernel.org/git/cover-00.13-00000000000-20211212T201308Z-avarab@gmail.com/

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0029-core-unsetenvvars.sh
t/t1350-config-hooks-path.sh
t/t3404-rebase-interactive.sh
t/t3430-rebase-merges.sh
t/t4150-am.sh
t/t5403-post-checkout-hook.sh
t/t5534-push-signed.sh
t/t7113-post-index-change-hook.sh
t/t9001-send-email.sh