]> git.ipfire.org Git - thirdparty/git.git/commit - t/t5302-pack-index.sh
Make sure that index-pack --strict checks tag objects
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 12 Sep 2014 08:08:16 +0000 (10:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Sep 2014 18:04:13 +0000 (11:04 -0700)
commitf99b7af661f89865f918e52223a3bdaf312a0de0
treecd124285c3bbaba403b90b73c289b44ef379f8fa
parent90e3e5f0574480cb873cca1c7b968dd1516c05d2
Make sure that index-pack --strict checks tag objects

One of the most important use cases for the strict tag object checking
is when transfer.fsckobjects is set to true to catch invalid objects
early on. This new regression test essentially tests the same code path
by directly calling 'index-pack --strict' on a pack containing an
tag object without a 'tagger' line.

Technically, this test is not enough: it only exercises a code path that
*warns*, not one that *fails*. The reason is that hash-object and
pack-objects both insist on parsing the tag objects and would fail on
invalid tag objects at this time.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5302-pack-index.sh