about summary refs log tree commit homepage
path: root/lib/PublicInbox/RepoGitAtom.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/RepoGitAtom.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/RepoGitAtom.pm')
-rw-r--r--lib/PublicInbox/RepoGitAtom.pm14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/PublicInbox/RepoGitAtom.pm b/lib/PublicInbox/RepoGitAtom.pm
index cf4df11c..531d8b9d 100644
--- a/lib/PublicInbox/RepoGitAtom.pm
+++ b/lib/PublicInbox/RepoGitAtom.pm
@@ -65,12 +65,12 @@ sub git_atom_sed ($$) {
         my $buf = '';
         my $state = 0;
         my $rel = $req->{relcmd};
-        my $repo_info = $req->{repo_info};
-        my $title = join('/', $repo_info->{repo}, @{$req->{extra}});
+        my $repo = $req->{-repo};
+        my $title = join('/', $repo->{repo}, @{$req->{extra}});
         $title = utf8_html("$title, $req->{-tip}");
         my $url = repo_root_url($self, $req);
         my $hdr = {};
-        my $subtitle = $repo_info->desc_html;
+        my $subtitle = $repo->desc_html;
         $req->{axml} = qq(<?xml version="1.0"?>\n) .
                 qq(<feed\nxmlns="http://www.w3.org/2005/Atom">) .
                 qq(<title>$title</title>) .
@@ -122,7 +122,7 @@ sub git_atom_cb {
                 my ($r) = @_;
                 my $env = $req->{env};
                 if (!defined $r) {
-                        my $git = $req->{repo_info}->{git};
+                        my $git = $req->{-repo}->{git};
                         return [ 400, [ 'Content-Type', 'text/plain' ],
                                 [ $git->err ] ];
                 }
@@ -133,12 +133,12 @@ sub git_atom_cb {
 
 sub call_git_atom {
         my ($self, $req) = @_;
-        my $repo_info = $req->{repo_info};
-        my $max = $repo_info->{max_commit_count} || 10;
+        my $repo = $req->{-repo};
+        my $max = $repo->{max_commit_count} || 10;
         $max = int($max);
         $max = 50 if $max == 0;
 
-        my $git = $repo_info->{git};
+        my $git = $repo->{git};
         my $env = $req->{env};
         my $tip = $req->{-tip};
         my $read_log = sub {