From 502be959531b34e2d9283213b7bca51842639240 Mon Sep 17 00:00:00 2001 From: Ben Walton Date: Sat, 20 Mar 2010 10:48:08 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- templates/hooks--pre-rebase.sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/hooks--pre-rebase.sample') diff --git a/templates/hooks--pre-rebase.sample b/templates/hooks--pre-rebase.sample index be1b06e250..ab1c4c8928 100755 --- a/templates/hooks--pre-rebase.sample +++ b/templates/hooks--pre-rebase.sample @@ -65,7 +65,7 @@ then fi else not_in_next=`git-rev-list --pretty=oneline ^${publish} "$topic"` - perl -e ' + @PERL_PATH@ -e ' my $topic = $ARGV[0]; my $msg = "* $topic has commits already merged to public branch:\n"; my (%not_in_next) = map { -- cgit v1.2.3