From: Eric Wong Date: Tue, 15 Oct 2019 01:38:25 +0000 (+0000) Subject: config: allow "0" as a valid mainrepo path X-Git-Tag: v1.2.0~39^2~2 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=849f57851a04e376cf2327d9e98e8128bf3c756e config: allow "0" as a valid mainrepo path It's probably wrong to use relative path names, but things are all relative these days anyways with shared and networked FSes. --- diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index e0329ebf..509de0a0 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -93,7 +93,7 @@ sub each_inbox { # may auto-vivify if config file is non-existent: foreach my $section (@{$self->{-section_order}}) { next if $section !~ m!\Apublicinbox\.([^/]+)\z!; - $self->{"publicinbox.$1.mainrepo"} or next; + defined($self->{"publicinbox.$1.mainrepo"}) or next; my $ibx = lookup_name($self, $1) or next; $cb->($ibx); }