about summary refs log tree commit homepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/import_vger_from_mbox2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/import_vger_from_mbox b/scripts/import_vger_from_mbox
index 191f75d6..ca5a408d 100644
--- a/scripts/import_vger_from_mbox
+++ b/scripts/import_vger_from_mbox
@@ -6,7 +6,6 @@ use warnings;
 use Getopt::Long qw/:config gnu_getopt no_ignore_case auto_abbrev/;
 use PublicInbox::MIME;
 use PublicInbox::InboxWritable;
-use PublicInbox::V2Writable;
 use PublicInbox::Import;
 use PublicInbox::MDA;
 my $usage = "usage: $0 NAME EMAIL DIR <MBOX\n";
@@ -35,6 +34,7 @@ my $ibx = {
 $ibx = PublicInbox::Inbox->new($ibx);
 unless ($dry_run) {
         if ($version >= 2) {
+                require PublicInbox::V2Writable;
                 PublicInbox::V2Writable->new($ibx, 1)->init_inbox(0);
         } else {
                 system(qw(git init --bare -q), $mainrepo) == 0 or die;