X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/5f6f9a1beab327be2728d44c1996408176f6800e..740c909abbe97151f14768de9476505c1f06badd:/IkiWiki/Wrapper.pm diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm index a8de39eea..1b8c558e5 100644 --- a/IkiWiki/Wrapper.pm +++ b/IkiWiki/Wrapper.pm @@ -52,6 +52,8 @@ sub gen_wrapper () { HTTP_COOKIE REMOTE_USER HTTPS REDIRECT_STATUS HTTP_HOST SERVER_PORT HTTPS HTTP_ACCEPT REDIRECT_URL} if $config{cgi}; + push @envsave, qw{GIT_OBJECT_DIRECTORY GIT_QUARANTINE_PATH + GIT_ALTERNATE_OBJECT_DIRECTORIES} if $config{test_receive}; my $envsave=""; foreach my $var (@envsave) { $envsave.=<<"EOF"; @@ -160,7 +162,7 @@ EOF if (defined $config{wrapper_background_command} && length $config{wrapper_background_command}) { my $background_command=delete $config{wrapper_background_command}; - $set_background_command=~s/"/\\"/g; + $background_command=~s/"/\\"/g; $set_background_command='#define BACKGROUND_COMMAND "'.$background_command.'"'; } @@ -180,6 +182,7 @@ EOF #include #include #include +#include extern char **environ; int newenvironlen=0;