Re: [PATCH 0/5] packfile: harden handling of packs with duplicate entries

Junio C Hamano <[email protected]>
Newsgroups org.kernel.vger.git
Message-ID <[email protected]>
Taylor Blau <[email protected]> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.