summaryrefslogtreecommitdiff
path: root/tests/libgit2/odb/backend/backend_helpers.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@vercel.com>2023-02-23 13:56:00 +0000
committerEdward Thomson <ethomson@vercel.com>2023-02-23 13:56:00 +0000
commit7afc57c6527bbeda0a5b66b40f733f176e85edb4 (patch)
treed2cdae31e644e86695c0e067cc1d5b53941d3e85 /tests/libgit2/odb/backend/backend_helpers.c
parentc9387a61656cd666d76a0491f6839c1a32835ca0 (diff)
downloadlibgit2-ethomson/sha256_fix.tar.gz
Diffstat (limited to 'tests/libgit2/odb/backend/backend_helpers.c')
-rw-r--r--tests/libgit2/odb/backend/backend_helpers.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libgit2/odb/backend/backend_helpers.c b/tests/libgit2/odb/backend/backend_helpers.c
index c1a0070d6..3a113da85 100644
--- a/tests/libgit2/odb/backend/backend_helpers.c
+++ b/tests/libgit2/odb/backend/backend_helpers.c
@@ -155,6 +155,9 @@ int build_fake_backend(
GIT_ERROR_CHECK_ALLOC(backend);
backend->parent.version = GIT_ODB_BACKEND_VERSION;
+#ifdef GIT_EXPERIMENTAL_SHA256
+ backend->parent.oid_type = GIT_OID_SHA1;
+#endif
backend->objects = objects;