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/sorting.c | |
parent | c9387a61656cd666d76a0491f6839c1a32835ca0 (diff) | |
download | libgit2-ethomson/sha256_fix.tar.gz |
betterethomson/sha256_fix
Diffstat (limited to 'tests/libgit2/odb/sorting.c')
-rw-r--r-- | tests/libgit2/odb/sorting.c | 5 |
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; } |