wait for first pass to complete before second pass

Otherwise the bloom filter may not be fully populated when the second
pass starts, which could have led to incorrect behavior with --all -J,
probably in very rare circumstances.
This commit is contained in:
Joey Hess 2020-09-24 14:23:25 -04:00
parent 167da965b9
commit b45b37b088
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -656,6 +656,7 @@ seekSyncContent o rs currbranch = do
l <- workTreeItems ww (contentOfOption o)
seekworktree mvar l (const noop)
pure Nothing
waitForAllRunningCommandActions
withKeyOptions' (keyOptions o) False
(return (commandAction . gokey mvar bloom))
(const noop)