assist: fix bug commiting just added file

This commit is contained in:
Joey Hess 2023-05-18 14:56:13 -04:00
parent 9619f562f4
commit fc3df2da9e
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -11,6 +11,7 @@ import Command
import qualified Command.Sync
import qualified Command.Add
import Annex.CheckIgnore
import qualified Annex.Queue
cmd :: Command
cmd = withAnnexOptions [jobsOption, backendOption] $
@ -32,6 +33,8 @@ myseek o = startConcurrency transferStages $ do
, Command.Add.checkGitIgnoreOption = CheckGitIgnore (False)
, Command.Add.dryRunOption = DryRun False
}
-- Flush added files to index so they will be committed.
Annex.Queue.flush
Command.Sync.prepMerge
Command.Sync.seek' o