summaryrefslogtreecommitdiff
path: root/git-repair.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2022-05-04 11:36:52 -0400
committerJoey Hess <joeyh@joeyh.name>2022-05-04 11:36:52 -0400
commit3c9630388ab0234df9e13473ac20c147e77074c5 (patch)
tree2c8a25a8d4893bb86ba42b4795f72d7f95700fbd /git-repair.hs
parente78aedf04f6fdabb948ab91d3b0b670e4765c6a2 (diff)
downloadgit-repair-3c9630388ab0234df9e13473ac20c147e77074c5.tar.gz
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
Diffstat (limited to 'git-repair.hs')
-rw-r--r--git-repair.hs2
1 files changed, 1 insertions, 1 deletions
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