]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'jk/fsck-tree-mode-bits-fix'
authorJunio C Hamano <gitster@pobox.com>
Thu, 18 Aug 2022 20:07:04 +0000 (13:07 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Aug 2022 20:07:04 +0000 (13:07 -0700)
commit363a193c3a2141f34808d70fdae8beac76076a53
treeba9406af54e2d2c79469a9b223966ce82192eab0
parent4d8074bf8eb7c1f9891cd70b4aeaa48203bfdf20
parent4dd3b045f528b8d9cbbb4a50e371affb0543f37d
Merge branch 'jk/fsck-tree-mode-bits-fix'

"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.

* 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
packfile.c