diff options
author | Junio C Hamano <gitster@pobox.com> | 2022-08-18 23:07:04 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-08-18 23:07:04 +0300 |
commit | 363a193c3a2141f34808d70fdae8beac76076a53 (patch) | |
tree | ba9406af54e2d2c79469a9b223966ce82192eab0 /packfile.c | |
parent | 4d8074bf8eb7c1f9891cd70b4aeaa48203bfdf20 (diff) | |
parent | 4dd3b045f528b8d9cbbb4a50e371affb0543f37d (diff) |
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
Diffstat (limited to 'packfile.c')
-rw-r--r-- | packfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packfile.c b/packfile.c index 6b0eb9048e..5ae3ce8ea9 100644 --- a/packfile.c +++ b/packfile.c @@ -2231,7 +2231,7 @@ static int add_promisor_object(const struct object_id *oid, struct tree *tree = (struct tree *)obj; struct tree_desc desc; struct name_entry entry; - if (init_tree_desc_gently(&desc, tree->buffer, tree->size)) + if (init_tree_desc_gently(&desc, tree->buffer, tree->size, 0)) /* * Error messages are given when packs are * verified, so do not print any here. |