Skip to content

Commit

Permalink
Merge branch 'jk/use-perl-path-consistently'
Browse files Browse the repository at this point in the history
Tests had a few places where we ignored PERL_PATH and blindly used
/usr/bin/perl, which have been corrected.

* jk/use-perl-path-consistently:
  t/lib-httpd: pass PERL_PATH to CGI scripts
  • Loading branch information
gitster committed Apr 11, 2023
2 parents 96f4113 + c191715 commit 063cd85
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions t/lib-httpd/apache.conf
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ PassEnv LC_ALL
Alias /dumb/ www/
Alias /auth/dumb/ www/auth/dumb/

SetEnv PERL_PATH ${PERL_PATH}

<LocationMatch /smart/>
SetEnv GIT_EXEC_PATH ${GIT_EXEC_PATH}
SetEnv GIT_HTTP_EXPORT_ALL
Expand Down
2 changes: 1 addition & 1 deletion t/lib-httpd/apply-one-time-perl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ then
export LC_ALL

"$GIT_EXEC_PATH/git-http-backend" >out
perl -pe "$(cat one-time-perl)" out >out_modified
"$PERL_PATH" -pe "$(cat one-time-perl)" out >out_modified

if cmp -s out out_modified
then
Expand Down

0 comments on commit 063cd85

Please sign in to comment.