From 1f34241e5dc94417d49e2c728e0f2ea04ddc39b0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 16 Feb 2017 20:53:42 +0000 Subject: repobrowse: shorten "repo_info" to "-repo" This makes it more consistent with how we use the Inbox objects for the main code. --- lib/PublicInbox/RepoGitCommit.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/PublicInbox/RepoGitCommit.pm') diff --git a/lib/PublicInbox/RepoGitCommit.pm b/lib/PublicInbox/RepoGitCommit.pm index c1cf06db..21f450ea 100644 --- a/lib/PublicInbox/RepoGitCommit.pm +++ b/lib/PublicInbox/RepoGitCommit.pm @@ -41,7 +41,7 @@ sub commit_header { qq( commit $H (patch)\n) . qq( tree $t); - my $git = $req->{repo_info}->{git}; + my $git = $req->{-repo}->{git}; # extra show path information, if any my $extra = $req->{extra}; my $path = ''; @@ -125,7 +125,7 @@ sub call_git_commit { # RepoBase calls this return $self->r(301, $req, "$relup#".to_attr($expath)); } - my $git = $req->{repo_info}->{git}; + my $git = $req->{-repo}->{git}; my $cmd = $git->cmd(qw(show -z --numstat -p --encoding=UTF-8 --no-notes --no-color -c), $git->abbrev, GIT_FMT, $tip, '--'); -- cgit v1.2.3-24-ge0c7