diff options
author | Justin Spahr-Summers <Justin.SpahrSummers@gmail.com> | 2013-06-26 23:03:33 +0400 |
---|---|---|
committer | Justin Spahr-Summers <Justin.SpahrSummers@gmail.com> | 2013-06-26 23:03:33 +0400 |
commit | c7974b49d04bc318d61a010d2c5d2e75095f410b (patch) | |
tree | 4313873836fc193173b38f50299e0d742a611852 /tests-clar/diff | |
parent | b0401c686788300bd4fb16cf395533458611eda1 (diff) |
Fail on unmodified deltas when they're unexpected
Diffstat (limited to 'tests-clar/diff')
-rw-r--r-- | tests-clar/diff/submodules.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/diff/submodules.c b/tests-clar/diff/submodules.c index 6e52a6319..46fe6c21c 100644 --- a/tests-clar/diff/submodules.c +++ b/tests-clar/diff/submodules.c @@ -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>")) |