diff options
author | Eric Wong <e@80x24.org> | 2016-12-14 00:31:30 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-12-14 00:31:30 +0000 |
commit | d4cec3bc3e439ab6ea9a2f89da5f98033bd95b4f (patch) | |
tree | bb83071053003b68747719f266414a336278fb96 /lib/PublicInbox/RepobrowseGitCommit.pm | |
parent | 00488f0cfe9f81d04cd65d09ea783e860c937401 (diff) | |
download | public-inbox-d4cec3bc3e439ab6ea9a2f89da5f98033bd95b4f.tar.gz |
We'll be migrating away from it to minimize dependencies and surprises, just like the rest of public-inbox did several months ago.
Diffstat (limited to 'lib/PublicInbox/RepobrowseGitCommit.pm')
-rw-r--r-- | lib/PublicInbox/RepobrowseGitCommit.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/RepobrowseGitCommit.pm b/lib/PublicInbox/RepobrowseGitCommit.pm index 227dad97..2577ea34 100644 --- a/lib/PublicInbox/RepobrowseGitCommit.pm +++ b/lib/PublicInbox/RepobrowseGitCommit.pm @@ -144,7 +144,7 @@ sub git_commit_stream ($$$$) { sub call_git_commit { my ($self, $req) = @_; - my $q = PublicInbox::RepobrowseGitQuery->new($req->{cgi}); + my $q = PublicInbox::RepobrowseGitQuery->new($req->{env}); my $id = $q->{id}; $id eq '' and $id = 'HEAD'; @@ -160,7 +160,7 @@ sub call_git_commit { --no-notes --no-color -c), $git->abbrev, GIT_FMT, $id, '--' ]; $req->{rpipe} = $git->popen($cmd, undef, { 2 => $git->err_begin }); - my $env = $req->{cgi}->env; + my $env = $req->{env}; my $err = $env->{'psgi.errors'}; my $vin; $req->{dbuf} = ''; |