summaryrefslogtreecommitdiff
path: root/tests/libgit2/repo/setters.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/repo/setters.c
parentf7fd9ce947fc2189ce80abc31fdc6077df94f73b (diff)
downloadlibgit2-ethomson/sha256_index.tar.gz
index: add sha256 supportethomson/sha256_index
Diffstat (limited to 'tests/libgit2/repo/setters.c')
-rw-r--r--tests/libgit2/repo/setters.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/libgit2/repo/setters.c b/tests/libgit2/repo/setters.c
index 66ec7706c..5c91ed390 100644
--- a/tests/libgit2/repo/setters.c
+++ b/tests/libgit2/repo/setters.c
@@ -1,6 +1,7 @@
#include "clar_libgit2.h"
#include "git2/sys/repository.h"
+#include "index.h"
#include "odb.h"
#include "posix.h"
#include "util.h"
@@ -70,7 +71,7 @@ void test_repo_setters__setting_a_new_index_on_a_repo_which_has_already_loaded_o
{
git_index *new_index;
- cl_git_pass(git_index_open(&new_index, "./my-index"));
+ cl_git_pass(git_index__open(&new_index, "./my-index", GIT_OID_SHA1));
cl_assert(((git_refcount *)new_index)->refcount.val == 1);
git_repository_set_index(repo, new_index);