diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-08-26 11:13:12 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-08-26 11:13:12 -0700 |
| commit | e5cb51d3aa2e522a571a74a9664a538a40fc7d64 (patch) | |
| tree | 9028149a8d97d380b80cd8812c18b4b4f37c4f30 /packfile.c | |
| parent | 222f9537771512ea159c6656a9757a987f7ae0db (diff) | |
| parent | 4dd3b045f528b8d9cbbb4a50e371affb0543f37d (diff) | |
| download | git-e5cb51d3aa2e522a571a74a9664a538a40fc7d64.tar.xz | |
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
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 8e812a84a3..e5b1d0ed76 100644 --- a/packfile.c +++ b/packfile.c @@ -2243,7 +2243,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. |
