From: Eric Wong Date: Sun, 21 Jun 2020 00:21:32 +0000 (+0000) Subject: init: refer to inboxes as "inbox" or "inboxes" in errors X-Git-Tag: v1.6.0~361 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=3ba0028804c50b75b1854d0c2bf637ebce0aa8b1 init: refer to inboxes as "inbox" or "inboxes" in errors Since V2 uses multiple git repositories, stop using the word "repo" when referring to inboxes. --- diff --git a/script/public-inbox-init b/script/public-inbox-init index 00147db5..e8dcf4fc 100755 --- a/script/public-inbox-init +++ b/script/public-inbox-init @@ -121,20 +121,20 @@ if (-f "$inboxdir/inbox.lock") { if (!defined $version) { $version = 2; } elsif ($version != 2) { - die "$inboxdir is a -V2 repo, -V$version specified\n" + die "$inboxdir is a -V2 inbox, -V$version specified\n" } } elsif (-d "$inboxdir/objects") { if (!defined $version) { $version = 1; } elsif ($version != 1) { - die "$inboxdir is a -V1 repo, -V$version specified\n" + die "$inboxdir is a -V1 inbox, -V$version specified\n" } } $version = 1 unless defined $version; if ($version == 1 && defined $skip_epoch) { - die "--skip-epoch is only supported for -V2 repos\n"; + die "--skip-epoch is only supported for -V2 inboxes\n"; } my $ibx = PublicInbox::Inbox->new({