Assistant, repair: Filter out git fsck lines about duplicate file entries in tree objects.
This commit is contained in:
parent
2610103a48
commit
dd0dff9dc4
3 changed files with 24 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue