summaryrefslogtreecommitdiff
path: root/t/gitweb-lib.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-05-01 17:55:00 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-05-01 19:11:11 (GMT)
commitf71db097efa1cdd304bfa2dd6d365592c1866543 (patch)
tree03866e73d1d225a807a0da788a8f474a18bdd093 /t/gitweb-lib.sh
parentf174a2583c9f42315b60205890fa67a79a1f1669 (diff)
downloadgit-f71db097efa1cdd304bfa2dd6d365592c1866543.zip
git-f71db097efa1cdd304bfa2dd6d365592c1866543.tar.gz
git-f71db097efa1cdd304bfa2dd6d365592c1866543.tar.bz2
t/gitweb-lib: use $PERL_PATH to run gitweb
The current code runs "perl gitweb.cgi" to test gitweb. This will use whatever version of perl happens to be first in the PATH. We are better off using the specific perl that the user specified via PERL_PATH, which matches what gets put on the #!-line of the built gitweb.cgi. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/gitweb-lib.sh')
-rw-r--r--t/gitweb-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/gitweb-lib.sh b/t/gitweb-lib.sh
index 292753f..f5fd940 100644
--- a/t/gitweb-lib.sh
+++ b/t/gitweb-lib.sh
@@ -68,7 +68,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";