]> git.ipfire.org Git - thirdparty/git.git/commit
hook tests: test for exact "pre-push" hook input
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 18 Feb 2022 20:52:58 +0000 (21:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 20 Feb 2022 07:49:56 +0000 (23:49 -0800)
commitbbd837f040ebeda2d072cdf2bbd26ec61e0f445e
treea2d18f07bcfca4844d3f51e2af32c6f62992f25b
parente6ebfd0e8cbbd10878070c8a356b5ad1b3ca464e
hook tests: test for exact "pre-push" hook input

Extend the tests added in ec55559f937 (push: Add support for pre-push
hooks, 2013-01-13) to exhaustively test for the exact input we're
expecting. This ensures that we e.g. don't miss a trailing newline.

Appending to a file called "actual" is the established convention in
this test for hooks, see the rest of the tests added in
ec55559f937 (push: Add support for pre-push hooks, 2013-01-13). Let's
follow that convention here.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5571-pre-push-hook.sh