]> git.ipfire.org Git - thirdparty/git.git/commit
hook tests: use a modern style for "pre-push" tests
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 18 Feb 2022 20:52:59 +0000 (21:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 20 Feb 2022 07:49:57 +0000 (23:49 -0800)
commit445401576787091ec78c0c5531027e7952668bfd
tree430374fe8c87c86e32d8aba365b5c685aace7efa
parentbbd837f040ebeda2d072cdf2bbd26ec61e0f445e
hook tests: use a modern style for "pre-push" tests

Indent the here-docs and use "test_cmp" instead of "diff" in tests
added in ec55559f937 (push: Add support for pre-push hooks,
2013-01-13). Let's also use the more typical "expect" instead of
"expected" to be consistent with the rest of the test file.

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