提交 f71db097 编写于 作者: J Jeff King 提交者: Junio C Hamano

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: NJeff King <peff@peff.net>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 f174a258
...@@ -68,7 +68,7 @@ gitweb_run () { ...@@ -68,7 +68,7 @@ gitweb_run () {
# written to web server logs, so we are not interested in that: # written to web server logs, so we are not interested in that:
# we are interested only in properly formatted errors/warnings # we are interested only in properly formatted errors/warnings
rm -f gitweb.log && rm -f gitweb.log &&
perl -- "$SCRIPT_NAME" \ "$PERL_PATH" -- "$SCRIPT_NAME" \
>gitweb.output 2>gitweb.log && >gitweb.output 2>gitweb.log &&
perl -w -e ' perl -w -e '
open O, ">gitweb.headers"; open O, ">gitweb.headers";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册