git-instaweb: fix mod_perl detection for apache2
The script was looking for something that matched the '^our $gitbin' regex, which no longer exists in gitweb.cgi. Now it looks for 'MOD_PERL', which should be on the line that checks to see if the script is running in a mod_perl environment. Signed-off-by: Mark Rada <marada@uwaterloo.ca> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Mark A Rada committed
Aug 8, 2009 at 18:24 UTC
f0e588dffc1a592ec7879cdb610654937cbbe25e
1 file changed
+1
-1
git-instaweb.sh
+1
-1
@@ -278,7 +278,7 @@ EOF
278
279
# check to see if Dennis Stosberg's mod_perl compatibility patch
280
# (<20060621130708.Gcbc6e5c@leonov.stosberg.net>) has been applied
281
- if test -f "$module_path/mod_perl.so" && grep '^our $gitbin' \
281
+ if test -f "$module_path/mod_perl.so" && grep 'MOD_PERL' \
282
"$GIT_DIR/gitweb/gitweb.cgi" >/dev/null
283
then
284
# favor mod_perl if available