summaryrefslogtreecommitdiff
path: root/tests/libgit2/index/inmemory.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-04-05 10:39:01 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2023-04-05 10:39:01 +0100
commit751887211b9f9fde4eff15018d2b524da55274d2 (patch)
treec59f9815cd971168a9bc2c90ef9a2066ebdd8d43 /tests/libgit2/index/inmemory.c
parentf7fd9ce947fc2189ce80abc31fdc6077df94f73b (diff)
downloadlibgit2-ethomson/sha256_index.tar.gz
index: add sha256 supportethomson/sha256_index
Diffstat (limited to 'tests/libgit2/index/inmemory.c')
-rw-r--r--tests/libgit2/index/inmemory.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/libgit2/index/inmemory.c b/tests/libgit2/index/inmemory.c
index 38e91e0fd..39374af67 100644
--- a/tests/libgit2/index/inmemory.c
+++ b/tests/libgit2/index/inmemory.c
@@ -1,10 +1,11 @@
#include "clar_libgit2.h"
+#include "index.h"
void test_index_inmemory__can_create_an_inmemory_index(void)
{
git_index *index;
- cl_git_pass(git_index_new(&index));
+ cl_git_pass(git_index__new(&index, GIT_OID_SHA1));
cl_assert_equal_i(0, (int)git_index_entrycount(index));
git_index_free(index);
@@ -14,7 +15,7 @@ void test_index_inmemory__cannot_add_bypath_to_an_inmemory_index(void)
{
git_index *index;
- cl_git_pass(git_index_new(&index));
+ cl_git_pass(git_index__new(&index, GIT_OID_SHA1));
cl_assert_equal_i(GIT_ERROR, git_index_add_bypath(index, "test.txt"));