diff options
author | Edward Thomson <ethomson@vercel.com> | 2023-02-23 13:56:00 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@vercel.com> | 2023-02-23 13:56:00 +0000 |
commit | 7afc57c6527bbeda0a5b66b40f733f176e85edb4 (patch) | |
tree | d2cdae31e644e86695c0e067cc1d5b53941d3e85 /tests/libgit2/odb/backend/backend_helpers.c | |
parent | c9387a61656cd666d76a0491f6839c1a32835ca0 (diff) | |
download | libgit2-ethomson/sha256_fix.tar.gz |
betterethomson/sha256_fix
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; |