]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/LeiStore.pm
lei: All Local Externals: bare git dir for alternates
[public-inbox.git] / lib / PublicInbox / LeiStore.pm
index ae2639148918d6fc741c75f4039fdd01568021c7..c1abc288bfcb46f539f0a689fac33c53030aa065 100644 (file)
@@ -251,24 +251,25 @@ sub refresh_local_externals {
                for my $loc (@loc) { # locals only
                        $lxs->prepare_external($loc) if -d $loc;
                }
+               $self->{lei}->ale->refresh_externals($lxs);
+               $lxs->{git} = $self->{lei}->ale->git;
                $self->{lxs_all_local} = $lxs;
                $self->{cur_cfg} = $cfg;
        }
-       ($lxs->{git_tmp} //= $lxs->git_tmp)->{git_dir};
 }
 
 sub write_prepare {
        my ($self, $lei) = @_;
        unless ($self->{-ipc_req}) {
                require PublicInbox::LeiXSearch;
-               $self->ipc_lock_init;
+               $self->ipc_lock_init($lei->store_path . '/ipc.lock');
                # Mail we import into lei are private, so headers filtered out
                # by -mda for public mail are not appropriate
                local @PublicInbox::MDA::BAD_HEADERS = ();
                $self->ipc_worker_spawn('lei_store', $lei->oldset,
                                        { lei => $lei });
        }
-       $lei->{all_ext_git_dir} = $self->ipc_do('refresh_local_externals');
+       my $wait = $self->ipc_do('refresh_local_externals');
        $lei->{sto} = $self;
 }