update exportdb tree in getImportableContents
This avoids bottlenecking on git check-ignore in a particular situation. Also, there may have been a correctness issue with it not having updated it. When the exportdb is already up-to-date, this is not expensive. And the exportdb is updated elsewhere, so usually it is up-to-date. Sponsored-by: Joshua Antonishen on Patreon
This commit is contained in:
parent
5934e7d402
commit
532b227086
3 changed files with 64 additions and 1 deletions
|
@ -1049,7 +1049,10 @@ getImportableContents r importtreeconfig ci matcher = do
|
|||
Just c' -> Just <$> filterunwantedchunk dbhandle c'
|
||||
)
|
||||
|
||||
opendbhandle = Export.openDb (Remote.uuid r)
|
||||
opendbhandle = do
|
||||
h <- Export.openDb (Remote.uuid r)
|
||||
void $ Export.updateExportTreeFromLog h
|
||||
return h
|
||||
|
||||
wanted dbhandle (loc, (_cid, sz))
|
||||
| ingitdir = pure False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue