about summary refs log tree commit homepage
path: root/lib/PublicInbox/LeiStore.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-03-20 19:04:03 +0900
committerEric Wong <e@80x24.org>2021-03-21 09:45:46 +0000
commit7d2e572aca7297ea2015d2b6e7c71b672521ec82 (patch)
tree072f2f81930af5a84091431171c8af43e0584011 /lib/PublicInbox/LeiStore.pm
parent592daf02926f747bacaa85a1d1509374c7e66f11 (diff)
downloadpublic-inbox-7d2e572aca7297ea2015d2b6e7c71b672521ec82.tar.gz
This will be used for keyword (and label) storage for externals.
We'll be using this to ensure we don't redundantly auto-import
messages into lei/store if they're already in a local external
(they can still be imported explicitly via "lei import").
Diffstat (limited to 'lib/PublicInbox/LeiStore.pm')
-rw-r--r--lib/PublicInbox/LeiStore.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiStore.pm b/lib/PublicInbox/LeiStore.pm
index 26f975c3..c1abc288 100644
--- a/lib/PublicInbox/LeiStore.pm
+++ b/lib/PublicInbox/LeiStore.pm
@@ -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;
 }