]> Sergey Matveev's repositories - public-inbox.git/commitdiff
init: refer to inboxes as "inbox" or "inboxes" in errors
authorEric Wong <e@yhbt.net>
Sun, 21 Jun 2020 00:21:32 +0000 (00:21 +0000)
committerEric Wong <e@yhbt.net>
Tue, 23 Jun 2020 00:22:16 +0000 (00:22 +0000)
Since V2 uses multiple git repositories, stop using
the word "repo" when referring to inboxes.

script/public-inbox-init

index 00147db557884cbc3d820da4ae05f96c7e8ee7e0..e8dcf4fc5743d1813eae3797e6178515737329e3 100755 (executable)
@@ -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({