author | Ben Walton <bwalton@artsci.utoronto.ca> | |
Sat, 20 Mar 2010 14:48:08 +0000 (10:48 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 20 Mar 2010 16:03:52 +0000 (09:03 -0700) | ||
commit | 502be959531b34e2d9283213b7bca51842639240 | |
tree | dfa1e75d548773be3c947021cbb7bbabb070a3e5 | tree | snapshot |
parent | f1ba1c90e1704e937ff59ee510a8d46a5ab52a1a | commit | diff |
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>
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 | diff | blob | history | |
templates/Makefile | diff | blob | history | |
templates/hooks--pre-rebase.sample | diff | blob | history | |
templates/hooks--prepare-commit-msg.sample | diff | blob | history |