Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: [PATCH] receive-pack, fetch-pack: reject bogus pack that records objects twice

From: Jeff King <hidden>
Date: 2016-06-15 22:52:30

On Wed, Nov 16, 2011 at 10:04:13PM -0800, Junio C Hamano wrote:
When receive-pack & fetch-pack are run and store the pack obtained over
the wire to a local repository, they internally run the index-pack command
with the --strict option. Make sure that we reject incoming packfile that
records objects twice to avoid spreading such a damage.
If we are fixing a thin pack (which should be the case most of the
time), we are rewriting the packfile anyway. Shouldn't we just omit
the duplicate?

I guess I'm a little confused about what is generating these duplicates.
A buggy git? A malicious server? Bad luck?

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help