use fileKey here
authorJoey Hess <joeyh@joeyh.name>
Mon, 14 Jan 2019 17:22:33 +0000 (13:22 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 14 Jan 2019 17:22:33 +0000 (13:22 -0400)
This doesn't change behavior in any way worth mentioning, but it's the
right thing to do.

Command/Fsck.hs

index 066e89bb56d707109654ca1cc871ea87fd5c61b5..81c5c26591b496750d6884af1a4f985e179ce81d 100644 (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