assist: fix bug committing just added file when -J is used

Need to wait for worker threads adding files before flushing the queue.
This commit is contained in:
Joey Hess 2023-05-18 15:02:10 -04:00
parent fc3df2da9e
commit 908b9687cc
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -33,6 +33,7 @@ myseek o = startConcurrency transferStages $ do
, Command.Add.checkGitIgnoreOption = CheckGitIgnore (False)
, Command.Add.dryRunOption = DryRun False
}
waitForAllRunningCommandActions
-- Flush added files to index so they will be committed.
Annex.Queue.flush