]> git.ipfire.org Git - thirdparty/git.git/commit
cat-file tests: add corrupt loose object test
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 1 Oct 2021 09:16:43 +0000 (11:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Oct 2021 22:05:59 +0000 (15:05 -0700)
commit7e7d220d9d0f357388923d0fe4a7e3f898858adb
tree890d95e4ba59cd89b4365918a9a87da23b0fbf31
parent59b8283d557a00d0c09684e621f5e000e6996b5f
cat-file tests: add corrupt loose object test

Fix a blindspot in the tests for "cat-file" (and by proxy, the guts of
object-file.c) by testing that when we can't decode a loose object
with zlib we'll emit an error from zlib.c.

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