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, 1 insertions, 4 deletions
diff --git a/lib/PublicInbox/RepoGitPlain.pm b/lib/PublicInbox/RepoGitPlain.pm
index 2ba24e08..6114a858 100644
--- a/lib/PublicInbox/RepoGitPlain.pm
+++ b/lib/PublicInbox/RepoGitPlain.pm
@@ -11,10 +11,7 @@ use PublicInbox::Qspawn;
 sub call_git_plain {
         my ($self, $req) = @_;
         my $git = $req->{repo_info}->{git};
-        my $q = PublicInbox::RepoGitQuery->new($req->{env});
-        my $id = $q->{id};
-        $id eq '' and $id = 'HEAD';
-        $id .= ":$req->{expath}";
+        my $id = $req->{-tip} . ':' . $req->{expath};
         my ($cat, $hex, $type, $size) = $git->cat_file_begin($id);
         return unless defined $cat;