diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2022-01-23 09:47:01 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-06-20 17:05:29 -0400 |
commit | 3fbf580c91935ccdea25a135204419991f503b63 (patch) | |
tree | 53ec861796641faf8895a1f19444c1939ac6be9a /tests/libgit2/diff/diff_helpers.c | |
parent | 61838295a055c8c7a4a7eb730538c6e08a38dd6a (diff) | |
download | libgit2-3fbf580c91935ccdea25a135204419991f503b63.tar.gz |
oid: give oids a type
`git_oid`s now have a type, and we require the oid type when creating
the object id from creation functions.
Diffstat (limited to 'tests/libgit2/diff/diff_helpers.c')
-rw-r--r-- | tests/libgit2/diff/diff_helpers.c | 2 |
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)); |