diff options
author | Eric Wong <e@80x24.org> | 2020-12-08 21:21:29 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-09 21:13:36 +0000 |
commit | 526f25b2da71377da8e2d8c9a3b717411e58682f (patch) | |
tree | 908ef73fcdcd4547c1cff7d5353a4330f136388a /lib/PublicInbox/Admin.pm | |
parent | b1bf076de26e8803e399b070bbc418a6ecd4ebe1 (diff) | |
download | public-inbox-526f25b2da71377da8e2d8c9a3b717411e58682f.tar.gz |
admin: resolve_repo_dir => resolve_inboxdir
We've stopped referring to inboxdirs as "repos" a while ago since v2 inboxes have multiple git repos associated with them. So update the name to reflect that and avoid an unnecessary export that's only used by a test case.
Diffstat (limited to 'lib/PublicInbox/Admin.pm')
-rw-r--r-- | lib/PublicInbox/Admin.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm index ec80b565..eeef2f63 100644 --- a/lib/PublicInbox/Admin.pm +++ b/lib/PublicInbox/Admin.pm @@ -8,7 +8,7 @@ use strict; use parent qw(Exporter); use Cwd qw(abs_path); use POSIX (); -our @EXPORT_OK = qw(resolve_repo_dir setup_signals); +our @EXPORT_OK = qw(setup_signals); use PublicInbox::Config; use PublicInbox::Inbox; use PublicInbox::Spawn qw(popen_rd); @@ -27,7 +27,7 @@ sub setup_signals { }; } -sub resolve_repo_dir { +sub resolve_inboxdir { my ($cd, $ver) = @_; my $prefix = defined $cd ? $cd : './'; if (-d $prefix && -f "$prefix/inbox.lock") { # v2 @@ -121,7 +121,7 @@ EOF push @dirs, '.' if !@dirs && $opt->{-use_cwd}; foreach (@dirs) { my $v; - my $dir = resolve_repo_dir($_, \$v); + my $dir = resolve_inboxdir($_, \$v); if ($v < $min_ver) { push @old, $dir; next; |