about summary refs log tree commit homepage
path: root/scripts/import_vger_from_mbox
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-10-17 08:19:11 +0000
committerEric Wong <e@80x24.org>2019-10-17 08:19:11 +0000
commitfece7fca6aeac74410a813cffcb0da338017d0ed (patch)
treedd8ebebc8ec82c65ff10723faeace03eb1152ca6 /scripts/import_vger_from_mbox
parenteb424226f3bc1d4a05d1b3900634fadb2ee2c140 (diff)
parent144eddbc7abaca320773dda514589a3198c8f58c (diff)
downloadpublic-inbox-fece7fca6aeac74410a813cffcb0da338017d0ed.tar.gz
* origin/inboxdir:
  config: remove redundant inboxdir check
  config: support "inboxdir" in addition to "mainrepo"
  examples/grok-pull.post_update_hook: use "inbox_dir"
Diffstat (limited to 'scripts/import_vger_from_mbox')
-rw-r--r--scripts/import_vger_from_mbox6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/import_vger_from_mbox b/scripts/import_vger_from_mbox
index b2dd5b3a..6329dd16 100644
--- a/scripts/import_vger_from_mbox
+++ b/scripts/import_vger_from_mbox
@@ -23,9 +23,9 @@ if ($variant ne 'mboxrd' && $variant ne 'mboxo') {
 }
 my $name = shift or die $usage; # git
 my $email = shift or die $usage; # git@vger.kernel.org
-my $mainrepo = shift or die $usage; # /path/to/v2/repo
+my $inboxdir = shift or die $usage; # /path/to/v2/repo
 my $ibx = {
-        mainrepo => $mainrepo,
+        inboxdir => $inboxdir,
         name => $name,
         version => $version,
         address => [ $email ],
@@ -37,7 +37,7 @@ unless ($dry_run) {
                 require PublicInbox::V2Writable;
                 PublicInbox::V2Writable->new($ibx, 1)->init_inbox(0);
         } else {
-                system(qw(git init --bare -q), $mainrepo) == 0 or die;
+                system(qw(git init --bare -q), $inboxdir) == 0 or die;
         }
 }
 $ibx = PublicInbox::InboxWritable->new($ibx);