fix bug introduced in direct mode conversion

oops, the code was "if direct && not present" and I removed the direct
which made the wrong path be taken.
This commit is contained in:
Joey Hess 2019-08-27 12:26:52 -04:00
parent a51a479fb9
commit 3a0842d9f8
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
2 changed files with 3 additions and 4 deletions

View file

@ -248,9 +248,7 @@ verifyLocationLog key keystatus ai = do
whenM (annexSecureHashesOnly <$> Annex.getGitConfig) $
warning $ "** Despite annex.securehashesonly being set, " ++ obj ++ " has content present in the annex using an insecure " ++ decodeBS (formatKeyVariety (keyVariety key)) ++ " key"
if not present
then return True
else verifyLocationLog' key ai present u (logChange key u)
verifyLocationLog' key ai present u (logChange key u)
verifyLocationLogRemote :: Key -> ActionItem -> Remote -> Bool -> Annex Bool
verifyLocationLogRemote key ai remote present =