about summary refs log tree commit homepage
path: root/lib/PublicInbox/Import.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-09-02 18:26:22 +0000
committerEric Wong <e@80x24.org>2022-09-04 14:41:43 +0000
commitfc89141c0d795e564eda4799a4ae69a26f2a8e14 (patch)
tree7df24c0cc87057c07887b18411d8a97e30e82826 /lib/PublicInbox/Import.pm
parentd20753c2a9d63e60b90942176684370c9dce97fb (diff)
downloadpublic-inbox-fc89141c0d795e564eda4799a4ae69a26f2a8e14.tar.gz
That file is meant for dumb HTTP servers, so avoid wasting two
inodes on something that should never be served for private
email.
Diffstat (limited to 'lib/PublicInbox/Import.pm')
-rw-r--r--lib/PublicInbox/Import.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm
index aef49033..2c8f310a 100644
--- a/lib/PublicInbox/Import.pm
+++ b/lib/PublicInbox/Import.pm
@@ -182,8 +182,8 @@ sub _update_git_info ($$) {
                 my $env = { GIT_INDEX_FILE => $index };
                 run_die([@cmd, qw(read-tree -m -v -i), $self->{ref}], $env);
         }
-        eval { run_die([@cmd, 'update-server-info']) };
         my $ibx = $self->{ibx};
+        eval { run_die([@cmd, 'update-server-info']) } if $ibx;
         if ($ibx && $ibx->version == 1 && -d "$ibx->{inboxdir}/public-inbox" &&
                                 eval { require PublicInbox::SearchIdx }) {
                 eval {