]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/forum/problems_with_git_push_on_openbsd/comment_2_e94bbbeae9c517ce2b7d3f41b3aedd90._comment
264ffc2f13f925217f0d8d0a42550a3a7c722b51
[git.ikiwiki.info.git] / doc / forum / problems_with_git_push_on_openbsd / comment_2_e94bbbeae9c517ce2b7d3f41b3aedd90._comment
1 [[!comment format=mdwn
2  username="gry"
3  avatar="http://cdn.libravatar.org/avatar/5821f2dec97d186ce3b455b806d33035"
4  subject="comment 2"
5  date="2022-02-15T20:21:26Z"
6  content="""
7 Made these changes to WikiWiki/Wrapper.pm:
9 ````
10         my @envsave;
11         push @envsave, qw{REMOTE_ADDR QUERY_STRING REQUEST_METHOD REQUEST_URI
12                        CONTENT_TYPE CONTENT_LENGTH GATEWAY_INTERFACE
13                        HTTP_COOKIE REMOTE_USER HTTPS REDIRECT_STATUS
14                        HTTP_HOST SERVER_PORT HTTPS HTTP_ACCEPT
15                        REDIRECT_URL} if $config{cgi};
16         push @envsave, qw{GIT_OBJECT_DIRECTORY GIT_QUARANTINE_PATH
17                        GIT_ALTERNATE_OBJECT_DIRECTORIES} if $config{test_receive};
18 +        push @envsave, qw{PERL5LIB};
19         my $envsave=\"\";
20         foreach my $var (@envsave) {
21                 $envsave.=<<\"EOF\";
22         if ((s=getenv(\"$var\")))
23                 addenv(\"$var\", s);
24 EOF
25         }
28 ````
30 ```
31 $check_commit_hook
32 @wrapper_hooks
33 $envsave
34         addenv(\"HOME\", \"$ENV{HOME}\");
35         addenv(\"PATH\", \"$ENV{PATH}\");
36 +        addenv(\"PERL5LIB\", \"$ENV{PERL5LIB}\");
37         addenv(\"WRAPPED_OPTIONS\", \"$configstring\");
38 ```
40 I don't know which of the two changes was needed - maybe only one. Now it builds. :-)
41 """]]