summaryrefslogtreecommitdiff
path: root/git-instaweb.sh
diff options
context:
space:
mode:
authorMark A Rada <marada@uwaterloo.ca>2009-08-08 22:24:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-08-10 01:38:47 (GMT)
commitf0e588dffc1a592ec7879cdb610654937cbbe25e (patch)
treebf25b11ba38864a3216dca202e99df006c99affa /git-instaweb.sh
parent5dc36a5888a7063ff4536c9ea50eb0557bfef627 (diff)
downloadgit-f0e588dffc1a592ec7879cdb610654937cbbe25e.zip
git-f0e588dffc1a592ec7879cdb610654937cbbe25e.tar.gz
git-f0e588dffc1a592ec7879cdb610654937cbbe25e.tar.bz2
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>
Diffstat (limited to 'git-instaweb.sh')
-rwxr-xr-xgit-instaweb.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-instaweb.sh b/git-instaweb.sh
index 32f6496..5f5cac7 100755
--- a/git-instaweb.sh
+++ b/git-instaweb.sh
@@ -278,7 +278,7 @@ EOF
# check to see if Dennis Stosberg's mod_perl compatibility patch
# (<20060621130708.Gcbc6e5c@leonov.stosberg.net>) has been applied
- if test -f "$module_path/mod_perl.so" && grep '^our $gitbin' \
+ if test -f "$module_path/mod_perl.so" && grep 'MOD_PERL' \
"$GIT_DIR/gitweb/gitweb.cgi" >/dev/null
then
# favor mod_perl if available