]> git.ipfire.org Git - thirdparty/git.git/commit - fsck.c
fsck: handle bad trees like other errors
authorDavid Turner <dturner@twosigma.com>
Tue, 27 Sep 2016 20:59:51 +0000 (16:59 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Sep 2016 21:09:10 +0000 (14:09 -0700)
commit8354fa3d4ca50850760ceee9054e3e7a799a4d62
tree2a771cdcd6318f94f12ae0601ceb999335d6a603
parent2edffef2337eae691a454a072e0f9b9538725317
fsck: handle bad trees like other errors

Instead of dying when fsck hits a malformed tree object, log the error
like any other and continue.  Now fsck can tell the user which tree is
bad, too.

Signed-off-by: David Turner <dturner@twosigma.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fsck.c
t/t1450-fsck.sh
tree-walk.c
tree-walk.h