diff options
author | Yuang Li <yuangli88@hotmail.com> | 2022-09-06 16:01:52 +0100 |
---|---|---|
committer | Yuang Li <yuangli88@hotmail.com> | 2022-09-06 16:01:52 +0100 |
commit | a9793ac643a0cd82b00970d0d6e0b67681ec3112 (patch) | |
tree | 6673f2e494d1710b82f99b7b49c52a1ab85d3669 /tests/libgit2/grafts/shallow.c | |
parent | 4f2f91a34f2e66a4511ebf0a650f379bd1c0e41f (diff) | |
download | libgit2-a9793ac643a0cd82b00970d0d6e0b67681ec3112.tar.gz |
refactor grafts tests
Diffstat (limited to 'tests/libgit2/grafts/shallow.c')
-rw-r--r-- | tests/libgit2/grafts/shallow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libgit2/grafts/shallow.c b/tests/libgit2/grafts/shallow.c index a75b5a051..8c2723922 100644 --- a/tests/libgit2/grafts/shallow.c +++ b/tests/libgit2/grafts/shallow.c @@ -20,7 +20,7 @@ void test_grafts_shallow__unset_feature_flag(void) void test_grafts_shallow__initialize(void) { git_libgit2_opts(GIT_OPT_ENABLE_SHALLOW, 1); - cl_git_pass(git_oid_fromstr(&g_shallow_oid, "be3563ae3f795b2b4353bcce3a527ad0a4f7f644")); + cl_git_pass(git_oid__fromstr(&g_shallow_oid, "be3563ae3f795b2b4353bcce3a527ad0a4f7f644", GIT_OID_SHA1)); } void test_grafts_shallow__cleanup(void) @@ -73,7 +73,7 @@ void test_grafts_shallow__cache_clearing(void) git_grafts *grafts; git_oid tmp_oid; - cl_git_pass(git_oid_fromstr(&tmp_oid, "0000000000000000000000000000000000000000")); + cl_git_pass(git_oid__fromstr(&tmp_oid, "0000000000000000000000000000000000000000", GIT_OID_SHA1)); g_repo = cl_git_sandbox_init("shallow.git"); cl_git_pass(git_repository_shallow_grafts__weakptr(&grafts, g_repo)); |