summaryrefslogtreecommitdiff
path: root/tests/diff/workdir.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2020-01-31 09:39:12 +0100
committerPatrick Steinhardt <ps@pks.im>2020-02-07 15:05:01 +0100
commitb0691db32c1349b1d3ea88f815994d2cd162bed0 (patch)
tree3126472f0e7e5a7eec28e09068815fc8a59a4ded /tests/diff/workdir.c
parent03ac24b1195e1ffb69a242eb77acce903812f032 (diff)
downloadlibgit2-b0691db32c1349b1d3ea88f815994d2cd162bed0.tar.gz
tests: diff: verify that we are able to diff with empty subtrees
While it is not allowed for a tree to have an empty tree as child (e.g. an empty directory), libgit2's tree builder makes it easy to create such trees. As a result, some applications may inadvertently end up with such an invalid tree, and we should try our best and handle them. One such case is when diffing two trees, where one of both trees has such an empty subtree. It was reported that this will cause our diff code to fail. While I wasn't able to reproduce this error, let's still add a test that verifies we continue to handle them correctly.
Diffstat (limited to 'tests/diff/workdir.c')
0 files changed, 0 insertions, 0 deletions