]> Kevux Git Server - rit/commit
t1800: add test to verify hook execution ordering
authorAdrian Ratiu <adrian.ratiu@collabora.com>
Wed, 25 Mar 2026 19:54:59 +0000 (21:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 25 Mar 2026 21:00:47 +0000 (14:00 -0700)
commite0fceec06ba10222c4b66e8fdf83b139c4233d31
treeece1b7e9fc6ecaccffb5bcf14a01ad4d22128a7a
parent2e5dbaff169dfb28fa8e8c4f992d8252a4ef1312
t1800: add test to verify hook execution ordering

There is a documented expectation that configured hooks are
run before the hook from the hookdir. Add a test for it.

While at it, I noticed that `git hook list -h` runs twice
in the `git hook usage` test, so remove one invocation.

Suggested-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1800-hook.sh