fix bug introduced in 07f1e638ee
Just totally wrong logic, oops. Caught by test suite.
This commit is contained in:
parent
75029536e5
commit
7a32e08c4a
1 changed files with 5 additions and 2 deletions
|
@ -385,8 +385,11 @@ removeDirect k f = do
|
||||||
unlessM (inAnnex k) $
|
unlessM (inAnnex k) $
|
||||||
-- If moveAnnex rejects the content of the key,
|
-- If moveAnnex rejects the content of the key,
|
||||||
-- treat that the same as its content having changed.
|
-- treat that the same as its content having changed.
|
||||||
whenM (goodContent k f <&&> moveAnnex k f) $
|
ifM (goodContent k f)
|
||||||
logStatus k InfoMissing
|
( unlessM (moveAnnex k f) $
|
||||||
|
logStatus k InfoMissing
|
||||||
|
, logStatus k InfoMissing
|
||||||
|
)
|
||||||
liftIO $ do
|
liftIO $ do
|
||||||
nukeFile f
|
nukeFile f
|
||||||
void $ tryIO $ removeDirectory $ parentDir f
|
void $ tryIO $ removeDirectory $ parentDir f
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue