about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepoGitBlob.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/RepoGitBlob.pm')
-rw-r--r--lib/PublicInbox/RepoGitBlob.pm5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/PublicInbox/RepoGitBlob.pm b/lib/PublicInbox/RepoGitBlob.pm
index 586b4acc..f9c28c22 100644
--- a/lib/PublicInbox/RepoGitBlob.pm
+++ b/lib/PublicInbox/RepoGitBlob.pm
@@ -12,10 +12,7 @@ our @EXPORT = qw(git_blob_mime_type git_blob_stream_response);
 sub call_git_blob {
         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;