]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Mbox.pm
rename 'GitCatFile' package to 'Git'
[public-inbox.git] / lib / PublicInbox / Mbox.pm
index c180a0dc84a2b915dadc8661276e78e023d221ab..0d67981f42a2e30e938f4ba3fa5ccf0f101f8087 100644 (file)
@@ -86,9 +86,9 @@ sub emit_mbox {
        my $fh = $response->([200, ['Content-Type' => "application/$type"]]);
        $fh = PublicInbox::MboxGz->new($fh) if $sfx;
 
-       require PublicInbox::GitCatFile;
+       require PublicInbox::Git;
        my $mid = $ctx->{mid};
-       my $git = PublicInbox::GitCatFile->new($ctx->{git_dir});
+       my $git = $ctx->{git} ||= PublicInbox::Git->new($ctx->{git_dir});
        my %opts = (offset => 0);
        my $nr;
        do {