Skip to content

Commit f71db09

Browse files
peffgitster
authored andcommitted
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>
1 parent f174a25 commit f71db09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

t/gitweb-lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ gitweb_run () {
6868
# written to web server logs, so we are not interested in that:
6969
# we are interested only in properly formatted errors/warnings
7070
rm -f gitweb.log &&
71-
perl -- "$SCRIPT_NAME" \
71+
"$PERL_PATH" -- "$SCRIPT_NAME" \
7272
>gitweb.output 2>gitweb.log &&
7373
perl -w -e '
7474
open O, ">gitweb.headers";

0 commit comments

Comments
 (0)