diff options
Diffstat (limited to 'Backend/SHA.hs')
-rw-r--r-- | Backend/SHA.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Backend/SHA.hs b/Backend/SHA.hs index d44982117..a3846a410 100644 --- a/Backend/SHA.hs +++ b/Backend/SHA.hs @@ -98,9 +98,8 @@ keyValueE size file = keyValue size file >>= maybe (return Nothing) addE {- A key's checksum is checked during fsck. -} checkKeyChecksum :: SHASize -> Key -> Annex Bool checkKeyChecksum size key = do - g <- gitRepo fast <- Annex.getState Annex.fast - let file = gitAnnexLocation g key + file <- fromRepo $ gitAnnexLocation key present <- liftIO $ doesFileExist file if not present || fast then return True |