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)
commitf71db097efa1cdd304bfa2dd6d365592c1866543
tree03866e73d1d225a807a0da788a8f474a18bdd093
parentf174a2583c9f42315b60205890fa67a79a1f1669
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>
t/gitweb-lib.sh