From: Dan McGee Date: Wed, 30 Jun 2010 02:44:59 +0000 (-0500) Subject: git-instaweb: Fix Apache environment variable passing X-Git-Tag: v1.7.2.1~16 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2989f516d54a8d453edefbfe955459d7944aedb5;p=git.git git-instaweb: Fix Apache environment variable passing We were passing the non-existent GIT_EXEC_DIR through instead of the real GIT_EXEC_PATH. In addition, these weren't being passed at all for CGI (non mod_perl) execution so get them included there as well. Signed-off-by: Dan McGee Acked-by: Eric Wong --- diff --git a/git-instaweb.sh b/git-instaweb.sh index a01476a80..1d349b88d 100755 --- a/git-instaweb.sh +++ b/git-instaweb.sh @@ -314,7 +314,7 @@ PidFile "$fqgitdir/pid" Listen $bind$port EOF - for mod in mime dir log_config; do + for mod in mime dir env log_config; do if test -e $module_path/mod_${mod}.so; then echo "LoadModule ${mod}_module " \ "$module_path/mod_${mod}.so" >> "$conf" @@ -334,7 +334,7 @@ EOF cat >> "$conf" < SetHandler perl-script @@ -364,6 +364,9 @@ EOF echo "ScriptSock logs/gitweb.sock" >> "$conf" fi cat >> "$conf" < Options +ExecCGI