]> git.ipfire.org Git - thirdparty/git.git/commit
fsck tests: add test for fsck-ing an unknown type
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 1 Oct 2021 09:16:37 +0000 (11:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Oct 2021 22:05:59 +0000 (15:05 -0700)
commit093fffdfbec4ce3fee9a5cebde0aae87bcebb0cc
tree7e63d6c96ec50fe9c7f1fc4fecd4a06d2274d15c
parent107691cb07aab771585844fcd39d5e1c7f1ed14b
fsck tests: add test for fsck-ing an unknown type

Fix a blindspot in the fsck tests by checking what we do when we
encounter an unknown "garbage" type produced with hash-object's
--literally option.

This behavior needs to be improved, which'll be done in subsequent
patches, but for now let's test for the current behavior.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1450-fsck.sh