Mark A Rada  committed f0e588d

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 <>
Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits 5dc36a5

Comments (0)

Files changed (1)


 	# check to see if Dennis Stosberg's mod_perl compatibility patch
 	# (<>) has been applied
-	if test -f "$module_path/" && grep '^our $gitbin' \
+	if test -f "$module_path/" && grep 'MOD_PERL' \
 				"$GIT_DIR/gitweb/gitweb.cgi" >/dev/null
 		# favor mod_perl if available