]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
repobrowse: git plain: fixup request handling
authorEric Wong <e@80x24.org>
Tue, 20 Dec 2016 23:20:11 +0000 (23:20 +0000)
committerEric Wong <e@80x24.org>
Tue, 20 Dec 2016 23:22:02 +0000 (23:22 +0000)
Leftover from commit d4cec3bc3e439ab6ea9a2f89da5f98033bd95b4f
("repobrowse: start reducing Plack::Request dependencies")

lib/PublicInbox/RepobrowseGitPlain.pm

index 0191989539fed3af6f4d6fcb3e3db3afc9a66b28..c59993fe95dbe0716502940a97614b34db2db316 100644 (file)
@@ -10,7 +10,7 @@ use PublicInbox::Hval qw(utf8_html);
 sub call_git_plain {
        my ($self, $req) = @_;
        my $git = $req->{repo_info}->{git};
-       my $q = PublicInbox::RepobrowseGitQuery->new($req->{cgi});
+       my $q = PublicInbox::RepobrowseGitQuery->new($req->{env});
        my $id = $q->{id};
        $id eq '' and $id = 'HEAD';