Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c7974b4

Browse files
committed
Fail on unmodified deltas when they're unexpected
1 parent b0401c6 commit c7974b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests-clar/diff/submodules.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static void check_diff_patches(git_diff_list *diff, const char **expected)
4747
for (d = 0; d < num_d; ++d, git_diff_patch_free(patch)) {
4848
cl_git_pass(git_diff_get_patch(&patch, &delta, diff, d));
4949

50-
if (delta->status == GIT_DELTA_UNMODIFIED)
50+
if (delta->status == GIT_DELTA_UNMODIFIED && expected[d] == NULL)
5151
continue;
5252

5353
if (expected[d] && !strcmp(expected[d], "<SKIP>"))

0 commit comments

Comments
 (0)