fsck: exit with non-zero status upon error from fsck_obj()
commit2e770fe47ef9c0b20bc687e37f3eb50f1bf919d0
authorJeff King <peff@peff.net>
Fri, 29 Aug 2014 20:31:46 +0000 (29 16:31 -0400)
committerJunio C Hamano <gitster@pobox.com>
Wed, 10 Sep 2014 16:40:53 +0000 (10 09:40 -0700)
tree002f9ee6fb1a4262c9940e37830669da6fed9d70
parentd31f3ad23dd1aee3c3e1015a43b02b995c01a9a1
fsck: exit with non-zero status upon error from fsck_obj()

Upon finding a corrupt loose object, we forgot to note the error to
signal it with the exit status of the entire process.

[jc: adjusted t1450 and added another test]

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsck.c
t/t1450-fsck.sh
t/t4212-log-corrupt.sh