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/RepoGitLog.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/RepoGitLog.pm')
-rw-r--r-- | lib/PublicInbox/RepoGitLog.pm | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/PublicInbox/RepoGitLog.pm b/lib/PublicInbox/RepoGitLog.pm index 09409edd..b759a5c0 100644 --- a/lib/PublicInbox/RepoGitLog.pm +++ b/lib/PublicInbox/RepoGitLog.pm @@ -55,7 +55,7 @@ sub git_log_sed_end ($$) { my $m = ''; my $np = 0; my $seen = $req->{seen}; - my $git = $req->{repo_info}->{git}; + my $git = $req->{-repo}->{git}; my $lpfx = $req->{lpfx}; foreach my $p (@{$req->{parents}}) { next if $seen->{$p}; @@ -121,18 +121,18 @@ sub git_log_sed ($$) { sub call_git_log { my ($self, $req) = @_; - my $repo_info = $req->{repo_info}; - my $max = $repo_info->{max_commit_count} || 50; + my $repo = $req->{-repo}; + my $max = $repo->{max_commit_count} || 50; my $h = $req->{h}; $max = int($max); $max = 50 if $max == 0; my $env = $req->{env}; - my $git = $repo_info->{git}; + my $git = $repo->{git}; my $cmd = $git->cmd(qw(log --no-notes --no-color --abbrev-commit), $git->abbrev, $LOG_FMT, "-$max", $req->{-tip}, '--'); my $rdr = { 2 => $git->err_begin }; - my $title = "log: $repo_info->{repo}"; + my $title = "log: $repo->{repo}"; if (defined $h) { $title .= ' ('. utf8_html($h). ')'; $req->{lpfx} = $req->{relcmd}; |