summaryrefslogtreecommitdiff
path: root/tests/libgit2/diff/patchid.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-07-13 21:08:04 -0400
committerGitHub <noreply@github.com>2022-07-13 21:08:04 -0400
commit433a133402fae298f8ee7613bcfd997c2712d269 (patch)
tree17c4d0c86faaeae71f65d28cc0ba0d60b481a2ea /tests/libgit2/diff/patchid.c
parent21b70f09b4e3db188bf5e5813a9912ae89de355d (diff)
parent6013b6a0dc5897386bfc8db6e07447c055f2fd94 (diff)
downloadlibgit2-433a133402fae298f8ee7613bcfd997c2712d269.tar.gz
Merge pull request #6191 from libgit2/ethomson/sha256_poc
RFC: SHA256 proof of concept
Diffstat (limited to 'tests/libgit2/diff/patchid.c')
-rw-r--r--tests/libgit2/diff/patchid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libgit2/diff/patchid.c b/tests/libgit2/diff/patchid.c
index 621a720f7..a79a425f9 100644
--- a/tests/libgit2/diff/patchid.c
+++ b/tests/libgit2/diff/patchid.c
@@ -6,7 +6,7 @@ static void verify_patch_id(const char *diff_content, const char *expected_id)
git_oid expected_oid, actual_oid;
git_diff *diff;
- cl_git_pass(git_oid_fromstr(&expected_oid, expected_id));
+ cl_git_pass(git_oid_fromstr(&expected_oid, expected_id, GIT_OID_SHA1));
cl_git_pass(git_diff_from_buffer(&diff, diff_content, strlen(diff_content)));
cl_git_pass(git_diff_patchid(&actual_oid, diff, NULL));