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/RepoGitTag.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/RepoGitTag.pm')
-rw-r--r-- | lib/PublicInbox/RepoGitTag.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/PublicInbox/RepoGitTag.pm b/lib/PublicInbox/RepoGitTag.pm index d046f853..6a35f61c 100644 --- a/lib/PublicInbox/RepoGitTag.pm +++ b/lib/PublicInbox/RepoGitTag.pm @@ -76,7 +76,7 @@ sub git_show_tag_as_tag { sub git_tag_show { my ($self, $req, $h, $res) = @_; - my $git = $req->{repo_info}->{git}; + my $git = $req->{-repo}->{git}; my $fh; my $hdr = ['Content-Type', 'text/html; charset=UTF-8']; @@ -114,10 +114,10 @@ sub invalid_tag_start { sub git_each_tag_sed ($$) { my ($self, $req) = @_; - my $repo_info = $req->{repo_info}; + my $repo = $req->{-repo}; my $buf = ''; my $nr = 0; - $req->{thtml} = $self->html_start($req, "$repo_info->{repo}: tag list") . + $req->{thtml} = $self->html_start($req, "$repo->{repo}: tag list") . '</pre><table><tr>' . join('', map { "<th><tt>$_</tt></th>" } qw(tag date subject)). '</tr>'; @@ -156,7 +156,7 @@ sub git_each_tag_sed ($$) { sub git_tag_list { my ($self, $req) = @_; - my $git = $req->{repo_info}->{git}; + my $git = $req->{-repo}->{git}; # TODO: use Xapian so we can more easily handle offsets/limits # for pagination instead of limiting @@ -183,7 +183,7 @@ sub git_tag_list { sub unknown_tag_type { my ($self, $fh, $req, $h, $type, $hex) = @_; - my $repo_info = $req->{repo_info}; + my $repo = $req->{-repo}; $h = $h->as_html; my $rel = $req->{relcmd}; my $label = "$type $hex"; @@ -191,7 +191,7 @@ sub unknown_tag_type { my $obj_link = qq(<a\nhref="$rel$cmd/$hex">$label</a>\n); $fh->write($self->html_start($req, - "$repo_info->{repo}: ref: $h") . + "$repo->{repo}: ref: $h") . "\n\n <b>$h</b> (lightweight tag)\nobject $obj_link\n"); } |