Assistant, repair: Filter out git fsck lines about duplicate file entries in tree objects.

This commit is contained in:
Joey Hess 2016-09-05 16:08:49 -04:00
parent 2610103a48
commit dd0dff9dc4
No known key found for this signature in database
GPG key ID: C910D9222512E3C7
3 changed files with 24 additions and 0 deletions

View file

@ -104,6 +104,8 @@ findShas :: Bool -> String -> [Sha]
findShas supportsNoDangling = catMaybes . map extractSha . concat . map words . filter wanted . lines
where
wanted l
-- Skip lines like "error in tree <sha>: duplicateEntries: contains duplicate file entries"
| "duplicateEntries" `isPrefixOf` l = False
| supportsNoDangling = True
| otherwise = not ("dangling " `isPrefixOf` l)