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/Repobrowse.pm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/PublicInbox/Repobrowse.pm') diff --git a/lib/PublicInbox/Repobrowse.pm b/lib/PublicInbox/Repobrowse.pm index 2513a105..7f50a877 100644 --- a/lib/PublicInbox/Repobrowse.pm +++ b/lib/PublicInbox/Repobrowse.pm @@ -98,22 +98,22 @@ sub call { return $self->root_index($self) unless length($repo_path); my $rconfig = $self->{rconfig}; # RepoConfig - my $repo_info; - until ($repo_info = $rconfig->lookup($repo_path)) { + my $repo; + until ($repo = $rconfig->lookup($repo_path)) { my $p = shift @extra or last; $repo_path .= "/$p"; } - return r404() unless $repo_info; + return r404() unless $repo; my $req = { - repo_info => $repo_info, + -repo => $repo, extra => \@extra, # path rconfig => $rconfig, env => $env, }; my $tslash = 0; my $cmd = shift @extra; - my $vcs_lc = $repo_info->{vcs}; + my $vcs_lc = $repo->{vcs}; my $vcs = $VCS{$vcs_lc} or return r404(); my $mod; my $h; @@ -148,8 +148,8 @@ sub call { $mod = load_once("PublicInbox::Repo$vcs$mod"); $vcs = load_once("PublicInbox::$vcs"); - # $repo_info->{git} ||= PublicInbox::Git->new(...) - $repo_info->{$vcs_lc} ||= $vcs->new($repo_info->{path}); + # $repo->{git} ||= PublicInbox::Git->new(...) + $repo->{$vcs_lc} ||= $vcs->new($repo->{path}); $req->{expath} = join('/', @extra); my $rv = eval { $mod->new->call($cmd, $req) }; # RepoBase::call -- cgit v1.2.3-24-ge0c7