diff options
Diffstat (limited to 'tests/libgit2/odb/backend/backend_helpers.c')
-rw-r--r-- | tests/libgit2/odb/backend/backend_helpers.c | 3 |
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; |