]> git.99rst.org Git - git.git/commit
git-send-email: Respect core.hooksPath setting
authorRobert Foss <redacted>
Tue, 23 Mar 2021 17:33:27 +0000 (18:33 +0100)
committerJunio C Hamano <redacted>
Tue, 23 Mar 2021 22:02:52 +0000 (15:02 -0700)
commitc8243933c74e0bebcc617f750ae3990ecca47759
treedff66299172f89b05e54680fd18c34d05bd79076
parent142430338477d9d1bb25be66267225fb58498d92
git-send-email: Respect core.hooksPath setting

get-send-email currently makes the assumption that the
'sendemail-validate' hook exists inside of the repository.

Since the introduction of 'core.hooksPath' configuration option in
867ad08a261 (hooks: allow customizing where the hook directory is,
2016-05-04), this is no longer true.

Instead of assuming a hardcoded repo relative path, query
git for the actual path of the hooks directory.

Signed-off-by: Robert Foss <redacted>
Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
Signed-off-by: Junio C Hamano <redacted>
git-send-email.perl
perl/Git.pm
t/t9001-send-email.sh
git clone https://git.99rst.org/PROJECT