test suite noticed a direct mode reversion

This commit is contained in:
Joey Hess 2015-12-29 17:11:28 -04:00
parent 10ecc43790
commit f3be28eedc
Failed to extract signature

View file

@ -129,7 +129,10 @@ resolveMerge' unstagedmap (Just us) them u = do
| keyUs /= keyThem -> resolveby [keyUs, keyThem] $ do
makeannexlink keyUs LsFiles.valUs
makeannexlink keyThem LsFiles.valThem
liftIO $ nukeFile file
-- cleanConflictCruft can't handle unlocked
-- files, so delete here.
unless (islocked LsFiles.valUs) $
liftIO $ nukeFile file
| otherwise -> do
-- Only resolve using symlink when both
-- were locked, otherwise use unlocked