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" &&
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 +
2 matches
Mail list logo