summaryrefslogtreecommitdiff
path: root/tests/libgit2/reset
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-04-05 10:39:01 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2023-04-10 11:02:12 +0100
commit523f893f6fac92e301b090b141b449183947e3b3 (patch)
tree11202ec3ccefc96deaf9719f792a7fc240f05b34 /tests/libgit2/reset
parentc616ba2d1ebab52af0315235932659d81d238876 (diff)
downloadlibgit2-523f893f6fac92e301b090b141b449183947e3b3.tar.gz
index: add sha256 support
Diffstat (limited to 'tests/libgit2/reset')
-rw-r--r--tests/libgit2/reset/hard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/libgit2/reset/hard.c b/tests/libgit2/reset/hard.c
index 0b6342cb2..06a8a049a 100644
--- a/tests/libgit2/reset/hard.c
+++ b/tests/libgit2/reset/hard.c
@@ -3,6 +3,7 @@
#include "reset_helpers.h"
#include "path.h"
#include "futils.h"
+#include "index.h"
static git_repository *repo;
static git_object *target;
@@ -252,7 +253,7 @@ void test_reset_hard__switch_file_to_dir(void)
git_odb_free(odb);
entry.mode = GIT_FILEMODE_BLOB;
- cl_git_pass(git_index_new(&idx));
+ cl_git_pass(git_index__new(&idx, GIT_OID_SHA1));
cl_git_pass(git_signature_now(&sig, "foo", "bar"));
/* Create the old tree */