summaryrefslogtreecommitdiff
path: root/tests/libgit2/odb/sorting.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libgit2/odb/sorting.c')
-rw-r--r--tests/libgit2/odb/sorting.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/libgit2/odb/sorting.c b/tests/libgit2/odb/sorting.c
index ec4e3696b..a26b9404e 100644
--- a/tests/libgit2/odb/sorting.c
+++ b/tests/libgit2/odb/sorting.c
@@ -15,8 +15,11 @@ static git_odb_backend *new_backend(size_t position)
if (b == NULL)
return NULL;
- b->base.free = (void (*)(git_odb_backend *)) git__free;
b->base.version = GIT_ODB_BACKEND_VERSION;
+#ifdef GIT_EXPERIMENTAL_SHA256
+ b->base.oid_type = GIT_OID_SHA1;
+#endif
+ b->base.free = (void (*)(git_odb_backend *)) git__free;
b->position = position;
return (git_odb_backend *)b;
}