about summary refs log tree commit homepage
path: root/lib/PublicInbox/Mbox.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/Mbox.pm')
-rw-r--r--lib/PublicInbox/Mbox.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/Mbox.pm b/lib/PublicInbox/Mbox.pm
index c180a0dc..0d67981f 100644
--- a/lib/PublicInbox/Mbox.pm
+++ b/lib/PublicInbox/Mbox.pm
@@ -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 {