]> Kevux Git Server - rit/commit
send-email: use 'git hook run' for 'sendemail-validate'
authorEmily Shaffer <emilyshaffer@google.com>
Wed, 22 Dec 2021 03:59:38 +0000 (04:59 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Jan 2022 23:19:35 +0000 (15:19 -0800)
commita75553045467d81f504d55379c773222f227736b
treeaabd32c9a7dd5b9f16d76e8d35248ee1b47cf92a
parent0d3979c175054187a4bd94dbbdc4f99300f7fc04
send-email: use 'git hook run' for 'sendemail-validate'

Change the "sendmail-validate" hook to be run via the "git hook run"
wrapper instead of via a direct invocation.

This is the smallest possibly change to get "send-email" using "git
hook run". We still check the hook itself with "-x", and set a
"GIT_DIR" variable, both of which are asserted by our tests. We'll
need to get rid of this special behavior if we start running N hooks,
but for now let's be as close to bug-for-bug compatible as possible.

Signed-off-by: Emily Shaffer <emilyshaffer@google.com>
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Reviewed-by: Emily Shaffer <emilyshaffer@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl
t/t9001-send-email.sh