use fileKey here

This doesn't change behavior in any way worth mentioning, but it's the
right thing to do.
This commit is contained in:
Joey Hess 2019-01-14 13:22:33 -04:00
parent 303e828b7c
commit 0acbbf208f
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -562,7 +562,7 @@ badContentDirect file key = do
badContentRemote :: Remote -> FilePath -> Key -> Annex String
badContentRemote remote localcopy key = do
bad <- fromRepo gitAnnexBadDir
let destbad = bad </> serializeKey key
let destbad = bad </> fileKey key
movedbad <- ifM (inAnnex key <||> liftIO (doesFileExist destbad))
( return False
, do