Merge branch 'jk/fsck-tree-mode-bits-fix' into maint
commite5cb51d3aa2e522a571a74a9664a538a40fc7d64
authorJunio C Hamano <gitster@pobox.com>
Fri, 26 Aug 2022 18:13:12 +0000 (26 11:13 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 Aug 2022 18:13:12 +0000 (26 11:13 -0700)
tree9028149a8d97d380b80cd8812c18b4b4f37c4f30
parent222f9537771512ea159c6656a9757a987f7ae0db
parent4dd3b045f528b8d9cbbb4a50e371affb0543f37d
Merge branch 'jk/fsck-tree-mode-bits-fix' into maint

"git fsck" reads mode from tree objects but canonicalizes the mode
before passing it to the logic to check object sanity, which has
hid broken tree objects from the checking logic.  This has been
corrected, but to help exiting projects with broken tree objects
that they cannot fix retroactively, the severity of anomalies this
code detects has been demoted to "info" for now.
source: <YvQcNpizy9uOZiAz@coredump.intra.peff.net>

* jk/fsck-tree-mode-bits-fix:
  fsck: downgrade tree badFilemode to "info"
  fsck: actually detect bad file modes in trees
  tree-walk: add a mechanism for getting non-canonicalized modes