From: gry Date: Tue, 15 Feb 2022 20:23:24 +0000 (-0400) Subject: Added a comment X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/13039f5d6f6849669bde8d0fdc14bf057cbe5e65?ds=sidebyside Added a comment --- diff --git a/doc/forum/problems_with_git_push_on_openbsd/comment_2_91f5b5c6c8ac9b8a1c207ebba7721682._comment b/doc/forum/problems_with_git_push_on_openbsd/comment_2_91f5b5c6c8ac9b8a1c207ebba7721682._comment new file mode 100644 index 000000000..1a1bcb1a9 --- /dev/null +++ b/doc/forum/problems_with_git_push_on_openbsd/comment_2_91f5b5c6c8ac9b8a1c207ebba7721682._comment @@ -0,0 +1,43 @@ +[[!comment format=mdwn + username="gry" + avatar="http://cdn.libravatar.org/avatar/5821f2dec97d186ce3b455b806d33035" + subject="comment 2" + date="2022-02-15T20:23:09Z" + content=""" +Made these changes to IkiWiki/Wrapper.pm: + +```` + my @envsave; + push @envsave, qw{REMOTE_ADDR QUERY_STRING REQUEST_METHOD REQUEST_URI + CONTENT_TYPE CONTENT_LENGTH GATEWAY_INTERFACE + 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}; ++ push @envsave, qw{PERL5LIB}; + my $envsave=\"\"; + foreach my $var (@envsave) { + $envsave.=<<\"EOF\"; + if ((s=getenv(\"$var\"))) + addenv(\"$var\", s); +EOF + } + + +```` + +and this: + +``` +$check_commit_hook +@wrapper_hooks +$envsave + addenv(\"HOME\", \"$ENV{HOME}\"); + addenv(\"PATH\", \"$ENV{PATH}\"); ++ addenv(\"PERL5LIB\", \"$ENV{PERL5LIB}\"); + addenv(\"WRAPPED_OPTIONS\", \"$configstring\"); +``` + +I don't know which of the two changes was needed - maybe only one. Now it builds. :-) +"""]]