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:
parent
a51a479fb9
commit
3a0842d9f8
2 changed files with 3 additions and 4 deletions
|
@ -248,9 +248,7 @@ verifyLocationLog key keystatus ai = do
|
||||||
whenM (annexSecureHashesOnly <$> Annex.getGitConfig) $
|
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"
|
warning $ "** Despite annex.securehashesonly being set, " ++ obj ++ " has content present in the annex using an insecure " ++ decodeBS (formatKeyVariety (keyVariety key)) ++ " key"
|
||||||
|
|
||||||
if not present
|
verifyLocationLog' key ai present u (logChange key u)
|
||||||
then return True
|
|
||||||
else verifyLocationLog' key ai present u (logChange key u)
|
|
||||||
|
|
||||||
verifyLocationLogRemote :: Key -> ActionItem -> Remote -> Bool -> Annex Bool
|
verifyLocationLogRemote :: Key -> ActionItem -> Remote -> Bool -> Annex Bool
|
||||||
verifyLocationLogRemote key ai remote present =
|
verifyLocationLogRemote key ai remote present =
|
||||||
|
|
|
@ -13,4 +13,5 @@ present. And does not fix the location log.
|
||||||
This part may not be specific to this case, seems it must be some bug in
|
This part may not be specific to this case, seems it must be some bug in
|
||||||
fsck?
|
fsck?
|
||||||
|
|
||||||
--[[Joey]]
|
> It was, a new bug introduced while removing the direct mode code. Fixed
|
||||||
|
> that part. --[[Joey]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue