From: Junio C Hamano Date: Thu, 31 Mar 2022 01:01:11 +0000 (-0700) Subject: Merge branch 'ab/hook-tests-updates' X-Git-Tag: v2.36.0-rc0~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a5bf611cc4f14f062cd74965deafe617048bff05;p=thirdparty%2Fgit.git Merge branch 'ab/hook-tests-updates' Update tests around the use of hook scripts. * ab/hook-tests-updates: http tests: use "test_hook" for "smart" and "dumb" http tests proc-receive hook tests: use "test_hook" instead of "write_script" tests: extend "test_hook" for "rm" and "chmod -x", convert "$HOOK" tests: use "test_hook" for misc "mkdir -p" and "chmod" cases tests: change "mkdir -p && write_script" to use "test_hook" tests: change "cat && chmod +x" to use "test_hook" gc + p4 tests: use "test_hook", remove sub-shells fetch+push tests: use "test_hook" and "test_when_finished" pattern bugreport tests: tighten up "git bugreport -s hooks" test tests: assume the hooks are disabled by default http tests: don't rely on "hook/post-update.sample" hook tests: turn exit code assertions into a loop test-lib-functions: add and use a "test_hook" wrapper --- a5bf611cc4f14f062cd74965deafe617048bff05