Re: [PATCH] receive-pack, fetch-pack: reject bogus pack that records objects twice
- From
Shawn Pearce <spearce@spearce.org>
- Date
- Nov 17, 2011, 20:51 UTC
- Message-ID
- <CAJo=hJtYYZqSowCLrBH02MrQyiuQFmTTxY2dHP9mOQQRqA5Z-Q@mail.gmail.com>
- In-Reply-To
- <7v7h2znv36.fsf@alter.siamese.dyndns.org>
On Wed, Nov 16, 2011 at 22:04, Junio C Hamano <gitster@pobox.com> wrote:
Show 6 quoted lines
> 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. > > Signed-off-by: Junio C Hamano <gitster@pobox.com>
Looks sane to me. I thought this would be more difficult to catch and report to the user. :-)