diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2023-04-05 10:39:01 +0100 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2023-04-10 11:02:12 +0100 |
| commit | 523f893f6fac92e301b090b141b449183947e3b3 (patch) | |
| tree | 11202ec3ccefc96deaf9719f792a7fc240f05b34 /tests/libgit2/clone | |
| parent | c616ba2d1ebab52af0315235932659d81d238876 (diff) | |
| download | libgit2-523f893f6fac92e301b090b141b449183947e3b3.tar.gz | |
index: add sha256 support
Diffstat (limited to 'tests/libgit2/clone')
| -rw-r--r-- | tests/libgit2/clone/nonetwork.c | 3 |
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; |
