avoid queueing rm of no files

This commit is contained in:
Joey Hess 2013-02-05 15:11:05 -04:00
parent 5c29750921
commit 39d5f3f11c

View file

@ -226,7 +226,8 @@ resolveMerge = do
void $ liftIO cleanup void $ liftIO cleanup
(deleted, cleanup2) <- inRepo (LsFiles.deleted [top]) (deleted, cleanup2) <- inRepo (LsFiles.deleted [top])
Annex.Queue.addCommand "rm" [Params "--quiet -f --"] deleted unless (null deleted) $
Annex.Queue.addCommand "rm" [Params "--quiet -f --"] deleted
void $ liftIO cleanup2 void $ liftIO cleanup2
when merged $ do when merged $ do