summaryrefslogtreecommitdiff
path: root/Git/Fsck.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Git/Fsck.hs')
-rw-r--r--Git/Fsck.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Git/Fsck.hs b/Git/Fsck.hs
index 6f33e11..69a9e9f 100644
--- a/Git/Fsck.hs
+++ b/Git/Fsck.hs
@@ -139,7 +139,8 @@ isMissing s r = either (const True) (const False) <$> tryIO dump
] r
findShas :: [String] -> [Sha]
-findShas = catMaybes . map extractSha . concat . map words . filter wanted
+findShas = catMaybes . map (extractSha . encodeBS')
+ . concat . map words . filter wanted
where
wanted l = not ("dangling " `isPrefixOf` l)