mirror of
https://git.proxmox.com/git/libgit2
synced 2025-06-19 18:54:04 +00:00
Fail on unmodified deltas when they're unexpected
This commit is contained in:
parent
b0401c6867
commit
c7974b49d0
@ -47,7 +47,7 @@ static void check_diff_patches(git_diff_list *diff, const char **expected)
|
||||
for (d = 0; d < num_d; ++d, git_diff_patch_free(patch)) {
|
||||
cl_git_pass(git_diff_get_patch(&patch, &delta, diff, d));
|
||||
|
||||
if (delta->status == GIT_DELTA_UNMODIFIED)
|
||||
if (delta->status == GIT_DELTA_UNMODIFIED && expected[d] == NULL)
|
||||
continue;
|
||||
|
||||
if (expected[d] && !strcmp(expected[d], "<SKIP>"))
|
||||
|
Loading…
Reference in New Issue
Block a user