summaryrefslogtreecommitdiff
path: root/tests/libgit2/clone/nonetwork.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/clone/nonetwork.c
parentf7fd9ce947fc2189ce80abc31fdc6077df94f73b (diff)
downloadlibgit2-ethomson/sha256_index.tar.gz
index: add sha256 supportethomson/sha256_index
Diffstat (limited to 'tests/libgit2/clone/nonetwork.c')
-rw-r--r--tests/libgit2/clone/nonetwork.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/libgit2/clone/nonetwork.c b/tests/libgit2/clone/nonetwork.c
index eab633635..5316003f8 100644
--- a/tests/libgit2/clone/nonetwork.c
+++ b/tests/libgit2/clone/nonetwork.c
@@ -5,6 +5,7 @@
#include "remote.h"
#include "futils.h"
#include "repository.h"
+#include "index.h"
#define LIVE_REPO_URL "git://github.com/libgit2/TestGitRepository"
@@ -271,7 +272,7 @@ void test_clone_nonetwork__clone_tag_to_tree(void)
stage = cl_git_sandbox_init("testrepo.git");
cl_git_pass(git_repository_odb(&odb, stage));
- cl_git_pass(git_index_new(&index));
+ cl_git_pass(git_index__new(&index, GIT_OID_SHA1));
memset(&entry, 0, sizeof(git_index_entry));
entry.path = file_path;