about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepoGitTree.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2017-02-16 20:53:42 +0000
committerEric Wong <e@80x24.org>2017-02-16 20:53:42 +0000
commit1f34241e5dc94417d49e2c728e0f2ea04ddc39b0 (patch)
tree95b1944b3aeec0d34d3ee6d63b652fc51077b953 /lib/PublicInbox/RepoGitTree.pm
parentf99f1c9f53c9d746f7223b457e386dbb20b57c07 (diff)
downloadpublic-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/RepoGitTree.pm')
-rw-r--r--lib/PublicInbox/RepoGitTree.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/RepoGitTree.pm b/lib/PublicInbox/RepoGitTree.pm
index 840af9ad..716dfe02 100644
--- a/lib/PublicInbox/RepoGitTree.pm
+++ b/lib/PublicInbox/RepoGitTree.pm
@@ -20,7 +20,7 @@ my $BINARY_MSG = "Binary file, save using the 'raw' link above";
 sub call_git_tree {
         my ($self, $req) = @_;
         my @extra = @{$req->{extra}};
-        my $git = $req->{repo_info}->{git};
+        my $git = $req->{-repo}->{git};
         my $obj = "$req->{-tip}:$req->{expath}";
         my ($hex, $type, $size) = $git->check($obj);
 
@@ -181,7 +181,7 @@ sub git_tree_sed ($) {
 
 sub git_tree_show {
         my ($req, $hex) = @_;
-        my $git = $req->{repo_info}->{git};
+        my $git = $req->{-repo}->{git};
         my $cmd = $git->cmd(qw(ls-tree -l -z), $git->abbrev, $hex);
         my $rdr = { 2 => $git->err_begin };
         my $qsp = PublicInbox::Qspawn->new($cmd, undef, $rdr);