diff options
author | Eric Wong <e@80x24.org> | 2017-02-16 20:53:42 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-02-16 20:53:42 +0000 |
commit | 1f34241e5dc94417d49e2c728e0f2ea04ddc39b0 (patch) | |
tree | 95b1944b3aeec0d34d3ee6d63b652fc51077b953 /lib/PublicInbox/RepoGitBlob.pm | |
parent | f99f1c9f53c9d746f7223b457e386dbb20b57c07 (diff) | |
download | public-inbox-1f34241e5dc94417d49e2c728e0f2ea04ddc39b0.tar.gz |
This makes it more consistent with how we use the Inbox objects for the main code.
Diffstat (limited to 'lib/PublicInbox/RepoGitBlob.pm')
-rw-r--r-- | lib/PublicInbox/RepoGitBlob.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/RepoGitBlob.pm b/lib/PublicInbox/RepoGitBlob.pm index f9c28c22..ca8a3c2f 100644 --- a/lib/PublicInbox/RepoGitBlob.pm +++ b/lib/PublicInbox/RepoGitBlob.pm @@ -11,7 +11,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 $git = $req->{-repo}->{git}; my $id = $req->{-tip} . ':' . $req->{expath}; my ($cat, $hex, $type, $size) = $git->cat_file_begin($id); @@ -39,7 +39,7 @@ sub git_blob_mime_type { $to_read = $$left if $to_read > $$left; my $r = read($cat, $$buf, $to_read); if (!defined $r || $r <= 0) { - my $git = $req->{repo_info}->{git}; + my $git = $req->{-repo}->{git}; $git->cat_file_finish($$left); return; } |