diff: fix test for SHA256 support in diff_from_buffer

This commit is contained in:
Edward Thomson
2024-02-20 12:37:58 +00:00
parent 2b1d8924e0
commit 4a1c2bd8ce

View File

@@ -294,7 +294,7 @@ void test_diff_parse__eof_nl_missing(void)
git_patch *ret_patch;
git_diff_line *line;
cl_git_pass(git_diff_from_buffer(&diff, patch, strlen(patch)));
cl_git_pass(diff_from_buffer(&diff, patch, strlen(patch)));
cl_git_pass(git_patch_from_diff(&ret_patch, diff, 0));
cl_assert((line = git_array_get(ret_patch->lines, 2)) != NULL);