]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t/gitweb-lib: use $PERL_PATH to run gitweb
authorJeff King <peff@peff.net>
Tue, 1 May 2012 17:55:00 +0000 (13:55 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 1 May 2012 19:11:11 +0000 (12:11 -0700)
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>
t/gitweb-lib.sh

index 292753f77c4daf5f3cb55de1c28269b13455544f..f5fd940ff9bc2ffa5c900aca5ea41fbc851bc517 100644 (file)
@@ -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";