]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchview: fix up Atom feed in search results
authorEric Wong <e@80x24.org>
Sat, 26 Dec 2015 01:01:52 +0000 (01:01 +0000)
committerEric Wong <e@80x24.org>
Sat, 26 Dec 2015 01:01:52 +0000 (01:01 +0000)
Oops :x  We need better testing...
Fixes: commit 4c2c2325d2948ec5340e2fcafbee798cf568f5fd
("rename 'GitCatFile' package to 'Git'")

lib/PublicInbox/SearchView.pm

index 9a581561172ddf941ba14a44655497302b77503e..994bf0dbaacac62ad87d3f959a09e1cd313bd39d 100644 (file)
@@ -235,7 +235,7 @@ sub html_start {
 sub adump {
        my ($cb, $mset, $q, $ctx) = @_;
        my $fh = $cb->([ 200, ['Content-Type' => 'application/atom+xml']]);
-       my $git = $ctx->{git_dir} ||= PublicInbox::Git->new($ctx->{git_dir});
+       my $git = $ctx->{git} ||= PublicInbox::Git->new($ctx->{git_dir});
        my $feed_opts = PublicInbox::Feed::get_feedopts($ctx);
        my $x = PublicInbox::Hval->new_oneline($q->{q})->as_html;
        $x = qq{$x - search results};