summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Command/Sync.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Command/Sync.hs b/Command/Sync.hs
index 50e709a2d..6d3a76659 100644
--- a/Command/Sync.hs
+++ b/Command/Sync.hs
@@ -226,7 +226,8 @@ resolveMerge = do
void $ liftIO cleanup
(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
when merged $ do