about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepoGitPlain.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/RepoGitPlain.pm')
-rw-r--r--lib/PublicInbox/RepoGitPlain.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/RepoGitPlain.pm b/lib/PublicInbox/RepoGitPlain.pm
index 79a15be6..8aff2177 100644
--- a/lib/PublicInbox/RepoGitPlain.pm
+++ b/lib/PublicInbox/RepoGitPlain.pm
@@ -10,8 +10,9 @@ use PublicInbox::Qspawn;
 
 sub call_git_plain {
         my ($self, $req) = @_;
-        my $git = $req->{-repo}->{git};
-        my $id = $req->{-tip} . ':' . $req->{expath};
+        my $repo = $req->{-repo};
+        my $git = $repo->{git};
+        my $id = $repo->tip . ':' . $req->{expath};
         my ($cat, $hex, $type, $size) = $git->cat_file_begin($id);
         return unless defined $cat;