summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-05-07 20:17:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-05-07 20:17:31 (GMT)
commitdc813f664d779330c392500a0f3b4d53893dc7ae (patch)
treeee84fc963a43dfd2e055aa311833c3625bb09a18
parent6a88021e4675b69b927ce1aa9c4dddc5dc621232 (diff)
parent0754e089c1ffc6a40574eee0564ef98b3acacc26 (diff)
downloadgit-dc813f664d779330c392500a0f3b4d53893dc7ae.zip
git-dc813f664d779330c392500a0f3b4d53893dc7ae.tar.gz
git-dc813f664d779330c392500a0f3b4d53893dc7ae.tar.bz2
Merge branch 'jk/maint-gitweb-test-use-sane-perl' into maint
When using a Perl script on a system where "perl" found on user's $PATH could be ancient or otherwise broken, we allow builders to specify the path to a good copy of Perl with $PERL_PATH. The gitweb test forgot to use that Perl when running its test. By Jeff King (1) and Zbigniew Jędrzejewski-Szmek (1) * jk/maint-gitweb-test-use-sane-perl: Consistently use perl from /usr/bin/ for scripts t/gitweb-lib: use $PERL_PATH to run gitweb
-rwxr-xr-xgit-relink.perl2
-rwxr-xr-xgit-svn.perl2
-rw-r--r--t/gitweb-lib.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/git-relink.perl b/git-relink.perl
index e136732..f29285c 100755
--- a/git-relink.perl
+++ b/git-relink.perl
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!/usr/bin/perl
# Copyright 2005, Ryan Anderson <ryan@michonline.com>
# Distribution permitted under the GPL v2, as distributed
# by the Free Software Foundation.
diff --git a/git-svn.perl b/git-svn.perl
index 4334b95..ca038ec 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -1,4 +1,4 @@
-#!/usr/bin/env perl
+#!/usr/bin/perl
# Copyright (C) 2006, Eric Wong <normalperson@yhbt.net>
# License: GPL v2 or later
use 5.008;
diff --git a/t/gitweb-lib.sh b/t/gitweb-lib.sh
index 21d11d6..ae2dc46 100644
--- a/t/gitweb-lib.sh
+++ b/t/gitweb-lib.sh
@@ -69,7 +69,7 @@ gitweb_run () {
# written to web server logs, so we are not interested in that:
# we are interested only in properly formatted errors/warnings
rm -f gitweb.log &&
- perl -- "$SCRIPT_NAME" \
+ "$PERL_PATH" -- "$SCRIPT_NAME" \
>gitweb.output 2>gitweb.log &&
perl -w -e '
open O, ">gitweb.headers";