about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepoGitSummary.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/RepoGitSummary.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/RepoGitSummary.pm')
-rw-r--r--lib/PublicInbox/RepoGitSummary.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/PublicInbox/RepoGitSummary.pm b/lib/PublicInbox/RepoGitSummary.pm
index 0ecef981..76d9c2b9 100644
--- a/lib/PublicInbox/RepoGitSummary.pm
+++ b/lib/PublicInbox/RepoGitSummary.pm
@@ -11,7 +11,7 @@ use PublicInbox::Qspawn;
 
 sub call_git_summary {
         my ($self, $req) = @_;
-        my $git = $req->{repo_info}->{git};
+        my $git = $req->{-repo}->{git};
         my $env = $req->{env};
 
         # n.b. we would use %(HEAD) in for-each-ref --format if we could
@@ -36,15 +36,15 @@ sub for_each_ref {
         my ($self, $req, $res, $head_ref) = @_;
         my $count = 10; # TODO: configurable
         my $fh;
-        my $repo_info = $req->{repo_info};
-        my $git = $repo_info->{git};
+        my $repo = $req->{-repo};
+        my $git = $repo->{git};
         my $refs = $git->popen(qw(for-each-ref --sort=-creatordate),
                                 EACH_REF_FMT, "--count=$count",
                                 qw(refs/heads/ refs/tags/));
         $fh = $res->([200, ['Content-Type'=>'text/html; charset=UTF-8']]);
         # ref names are unpredictable in length and requires tables :<
         $fh->write($self->html_start($req,
-                                "$repo_info->{repo}: overview") .
+                                "$repo->{repo}: overview") .
                         '</pre><table>');
 
         my $rel = $req->{relcmd};
@@ -76,7 +76,7 @@ sub for_each_ref {
         $fh->write('</table>');
 
         # some people will use README.md or even README.sh here...
-        my $readme = $repo_info->{readme};
+        my $readme = $repo->{readme};
         defined $readme or $readme = [ 'README', 'README.md' ];
         $readme = [ $readme ] if (ref($readme) ne 'ARRAY');
         foreach my $r (@$readme) {