about summary refs log tree commit homepage
path: root/lib/PublicInbox/LEI.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-31 13:51:42 +0000
committerEric Wong <e@80x24.org>2021-01-01 05:00:39 +0000
commit9c7737d056f832824812086373a13922dd08a0c5 (patch)
tree5d7e73f0aac58984095c601afb906323179b0241 /lib/PublicInbox/LEI.pm
parent52acde10d4c149bb73b717abdc70720be9a4fe24 (diff)
downloadpublic-inbox-9c7737d056f832824812086373a13922dd08a0c5.tar.gz
It seems like a more logical place for it, but we'll favor the
newly-added xsys_e() in tests for BAIL_OUT use.
Diffstat (limited to 'lib/PublicInbox/LEI.pm')
-rw-r--r--lib/PublicInbox/LEI.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm
index bb77198e..1ba9eff3 100644
--- a/lib/PublicInbox/LEI.pm
+++ b/lib/PublicInbox/LEI.pm
@@ -19,7 +19,7 @@ use PublicInbox::Config;
 use PublicInbox::Syscall qw($SFD_NONBLOCK EPOLLIN EPOLLONESHOT);
 use PublicInbox::Sigfd;
 use PublicInbox::DS qw(now);
-use PublicInbox::Spawn qw(spawn);
+use PublicInbox::Spawn qw(spawn run_die);
 use PublicInbox::OnDestroy;
 use Text::Wrap qw(wrap);
 use File::Path qw(mkpath);
@@ -482,8 +482,7 @@ sub lei_config {
         my $cfg = _lei_cfg($self, 1);
         my $cmd = [ qw(git config -f), $cfg->{'-f'}, @argv ];
         my %rdr = map { $_ => $self->{$_} } (0..2);
-        require PublicInbox::Import;
-        PublicInbox::Import::run_die($cmd, $env, \%rdr);
+        run_die($cmd, $env, \%rdr);
 }
 
 sub lei_init {