summaryrefslogtreecommitdiff
path: root/tests/libgit2/diff/diff_helpers.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/diff_helpers.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/diff_helpers.c')
-rw-r--r--tests/libgit2/diff/diff_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libgit2/diff/diff_helpers.c b/tests/libgit2/diff/diff_helpers.c
index e9900339f..ae23c48b7 100644
--- a/tests/libgit2/diff/diff_helpers.c
+++ b/tests/libgit2/diff/diff_helpers.c
@@ -11,7 +11,7 @@ git_tree *resolve_commit_oid_to_tree(
git_object *obj = NULL;
git_tree *tree = NULL;
- if (git_oid_fromstrn(&oid, partial_oid, len) == 0)
+ if (git_oid_fromstrn(&oid, partial_oid, len, GIT_OID_SHA1) == 0)
cl_git_pass(git_object_lookup_prefix(&obj, repo, &oid, len, GIT_OBJECT_ANY));
cl_git_pass(git_object_peel((git_object **) &tree, obj, GIT_OBJECT_TREE));