Re: [PATCH 0/5] packfile: harden handling of packs with duplicate entries
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 24, 2026, 21:54 UTC
- Message-ID
- <xmqqecgs3vg6.fsf@gitster.g>
- In-Reply-To
- <cover.1784927134.git.ttaylorr@openai.com>
Taylor Blau <ttaylorr@openai.com> writes:
> Packfiles containing duplicate object entries are unusual, but Git > already accepts them outside of strict indexing.
That is looser than what we intended. "unusual" -> "invalid". It is just like Git does not immediately complain until "git fsck", "git repack", or otherwise "git" tries to use the object if you corrupted loose object files under .git/objects/??/ directories.
Detecting such a problematic pack early before the problem spreads is a very welcome change.