t5308: check that index-pack --strict detects duplicate objects
commit16c159d75af29b1929af0e2f341d26fce4e1d546
authorJeff King <peff@peff.net>
Wed, 4 Sep 2013 09:01:53 +0000 (4 05:01 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Sep 2013 17:52:01 +0000 (4 10:52 -0700)
treebac26563bcc66426ea08d526208db5f068376c11
parentb2ef3d9ebb95ce369330d1f09db361aa39c67013
t5308: check that index-pack --strict detects duplicate objects

Commit 68be2fea (receive-pack, fetch-pack: reject bogus pack that
records objects twice, 2011-11-16) taught index-pack to notice and
reject duplicate objects if --strict is given (which it is for
incoming packs, if transfer.fsckObjects is set).  However, it never
tested the code, because we did not have an easy way of generating
such a bogus pack.

Now that we have test infrastructure to handle this, let's confirm
that it works.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5308-pack-detect-duplicates.sh