summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorYuang Li <yuangli88@hotmail.com>2022-08-31 17:03:53 +0100
committerYuang Li <yuangli88@hotmail.com>2022-08-31 17:03:53 +0100
commitd0eba8ae58092f0db061e3776f194256d0a56fde (patch)
tree05b76a69d6f87527134baccec0ba37978bfec352 /tests
parent4cf19add64e2a705bdf1c87ece4874edef77d290 (diff)
downloadlibgit2-d0eba8ae58092f0db061e3776f194256d0a56fde.tar.gz
fix shallowarray test
Diffstat (limited to 'tests')
-rw-r--r--tests/libgit2/transports/smart/shallowarray.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/libgit2/transports/smart/shallowarray.c b/tests/libgit2/transports/smart/shallowarray.c
index c51e62713..ec4388e42 100644
--- a/tests/libgit2/transports/smart/shallowarray.c
+++ b/tests/libgit2/transports/smart/shallowarray.c
@@ -19,9 +19,9 @@ void test_transports_smart_shallowarray__add_and_remove_oid_from_shallowarray(vo
git_shallowarray *shallow_roots = git__malloc(sizeof(git_shallowarray));
git_array_init(shallow_roots->array);
- git_oid_fromstr(&oid_0_obj, oid_0);
- git_oid_fromstr(&oid_1_obj, oid_1);
- git_oid_fromstr(&oid_2_obj, oid_2);
+ git_oid__fromstr(&oid_0_obj, oid_0, GIT_OID_SHA1);
+ git_oid__fromstr(&oid_1_obj, oid_1, GIT_OID_SHA1);
+ git_oid__fromstr(&oid_2_obj, oid_2, GIT_OID_SHA1);
git_shallowarray_add(shallow_roots, &oid_0_obj);
git_shallowarray_add(shallow_roots, &oid_1_obj);