Re: [PATCH v3 2/3] fsck: handle bad trees like other errors

2016-09-27 Thread Jeff King
On Tue, Sep 27, 2016 at 11:23:25AM -0400, David Turner wrote: > +test_expect_success 'unparseable tree object' ' > + test_when_finished "git update-ref -d refs/heads/wrong" && > + test_when_finished "remove_object \$tree_sha1" && > + test_when_finished "remove_object \$commit_sha1" &&

[PATCH v3 2/3] fsck: handle bad trees like other errors

2016-09-27 Thread David Turner
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 --- fsck.c | 18 - t/t1450-fsck.sh | 16 +-- tree-walk.c | 83 +