summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Command/Sync.hs14
1 files changed, 7 insertions, 7 deletions
diff --git a/Command/Sync.hs b/Command/Sync.hs
index 96aae888b..091431bda 100644
--- a/Command/Sync.hs
+++ b/Command/Sync.hs
@@ -248,8 +248,13 @@ resolveMerge' :: LsFiles.Unmerged -> Annex Bool
resolveMerge' u
| issymlink LsFiles.valUs && issymlink LsFiles.valThem =
withKey LsFiles.valUs $ \keyUs ->
- withKey LsFiles.valThem $ \keyThem -> do
- go keyUs keyThem
+ withKey LsFiles.valThem $ \keyThem -> do
+ ifM isDirect
+ ( maybe noop (\k -> removeDirect k file) keyUs
+ , liftIO $ nukeFile file
+ )
+ Annex.Queue.addCommand "rm" [Params "--quiet -f --"] [file]
+ go keyUs keyThem
| otherwise = return False
where
go keyUs keyThem
@@ -257,11 +262,6 @@ resolveMerge' u
makelink keyUs
return True
| otherwise = do
- ifM isDirect
- ( maybe noop (\k -> removeDirect k file) keyUs
- , liftIO $ nukeFile file
- )
- Annex.Queue.addCommand "rm" [Params "--quiet -f --"] [file]
makelink keyUs
makelink keyThem
return True