]> 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 26f975c307402535643432389f45c4ceb7e6638a..c1abc288bfcb46f539f0a689fac33c53030aa065 100644 (file)
@@ -251,10 +251,11 @@ 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 {
@@ -268,7 +269,7 @@ sub write_prepare {
                $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;
 }