summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-05-05 16:29:58 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2023-05-06 14:33:49 +0100
commit161d8a12e70936222a55b5571098299957cdee04 (patch)
tree0498bfeedcb14fee66cbfffaa2c320b718f6ed23 /tests
parentf1ef8ebee3ee21afba3ad1ad1335d34371a61d05 (diff)
downloadlibgit2-161d8a12e70936222a55b5571098299957cdee04.tar.gz
sha256: wrap_odb supports SHA256
Diffstat (limited to 'tests')
-rw-r--r--tests/libgit2/odb/backend/loose.c2
-rw-r--r--tests/libgit2/odb/backend/mempack.c2
-rw-r--r--tests/libgit2/refs/iterator.c3
3 files changed, 4 insertions, 3 deletions
diff --git a/tests/libgit2/odb/backend/loose.c b/tests/libgit2/odb/backend/loose.c
index f5a0b4f5c..02227945d 100644
--- a/tests/libgit2/odb/backend/loose.c
+++ b/tests/libgit2/odb/backend/loose.c
@@ -21,7 +21,7 @@ void test_odb_backend_loose__initialize(void)
cl_git_pass(git_odb__new(&_odb, NULL));
cl_git_pass(git_odb_add_backend(_odb, backend, 10));
- cl_git_pass(git_repository_wrap_odb(&_repo, _odb));
+ cl_git_pass(git_repository__wrap_odb(&_repo, _odb, GIT_OID_SHA1));
}
void test_odb_backend_loose__cleanup(void)
diff --git a/tests/libgit2/odb/backend/mempack.c b/tests/libgit2/odb/backend/mempack.c
index eb8ab3cb0..c8a86a2ae 100644
--- a/tests/libgit2/odb/backend/mempack.c
+++ b/tests/libgit2/odb/backend/mempack.c
@@ -16,7 +16,7 @@ void test_odb_backend_mempack__initialize(void)
cl_git_pass(git_mempack_new(&backend));
cl_git_pass(git_odb__new(&_odb, NULL));
cl_git_pass(git_odb_add_backend(_odb, backend, 10));
- cl_git_pass(git_repository_wrap_odb(&_repo, _odb));
+ cl_git_pass(git_repository__wrap_odb(&_repo, _odb, GIT_OID_SHA1));
}
void test_odb_backend_mempack__cleanup(void)
diff --git a/tests/libgit2/refs/iterator.c b/tests/libgit2/refs/iterator.c
index f40d35d11..706fd1ef7 100644
--- a/tests/libgit2/refs/iterator.c
+++ b/tests/libgit2/refs/iterator.c
@@ -2,6 +2,7 @@
#include "refs.h"
#include "vector.h"
#include "odb.h"
+#include "repository.h"
static git_repository *repo;
@@ -128,7 +129,7 @@ void test_refs_iterator__empty(void)
git_repository *empty;
cl_git_pass(git_odb__new(&odb, NULL));
- cl_git_pass(git_repository_wrap_odb(&empty, odb));
+ cl_git_pass(git_repository__wrap_odb(&empty, odb, GIT_OID_SHA1));
cl_git_pass(git_reference_iterator_new(&iter, empty));
cl_assert_equal_i(GIT_ITEROVER, git_reference_next(&ref, iter));