From 3c9630388ab0234df9e13473ac20c147e77074c5 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 4 May 2022 11:36:52 -0400 Subject: Avoid treating refs that are not commit objects as evidence of repository corruption merged fix from git-annex, which actually has such a ref, refs/annex/last-index --- git-repair.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git-repair.hs') diff --git a/git-repair.hs b/git-repair.hs index 7ca1854..18721a9 100644 --- a/git-repair.hs +++ b/git-repair.hs @@ -100,7 +100,7 @@ runTest settings damage = withTmpDir "tmprepo" $ \tmpdir -> do case repairstatus of Just True -> testResult repairstatus . Just . not . Git.Fsck.foundBroken - =<< Git.Fsck.findBroken False g + =<< Git.Fsck.findBroken False False g _ -> testResult repairstatus Nothing -- Pass test result and fsck result -- cgit v1.2.3