receive-pack, fetch-pack: reject bogus pack that records objects twice
authorJunio C Hamano <gitster@pobox.com>
Thu, 17 Nov 2011 06:04:13 +0000 (22:04 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 17 Nov 2011 06:05:21 +0000 (22:05 -0800)
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>
No differences found