Make templates honour SHELL_PATH and PERL_PATH
commit502be959531b34e2d9283213b7bca51842639240
authorBen Walton <bwalton@artsci.utoronto.ca>
Sat, 20 Mar 2010 14:48:08 +0000 (20 10:48 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sat, 20 Mar 2010 16:03:52 +0000 (20 09:03 -0700)
treedfa1e75d548773be3c947021cbb7bbabb070a3e5
parentf1ba1c90e1704e937ff59ee510a8d46a5ab52a1a
Make templates honour SHELL_PATH and PERL_PATH

The hook script templates were hard coded to use /bin/sh and perl.
This patch ensures that they use the same tools specified for the rest
of the suite.

The impetus for the change was noticing that, as shipped, some of the
hooks used shell constructs that wouldn't work under Solaris' /bin/sh
(eg: $(cmd...) substitutions).

Signed-off-by: Ben Walton <bwalton@artsci.utoronto.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
templates/Makefile
templates/hooks--pre-rebase.sample
templates/hooks--prepare-commit-msg.sample