summaryrefslogtreecommitdiff
path: root/tests/libgit2/odb/sorting.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2022-07-11 14:11:15 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2022-07-11 21:36:49 -0400
commit5e44529d206936336e568725aec4fb5fe64138b7 (patch)
treea4ca6d441371d7b146bae5d123100633900de3a7 /tests/libgit2/odb/sorting.c
parent73deea7e0cef7761588df25c396c156ae901725a (diff)
downloadlibgit2-ethomson/sha256_pack.tar.gz
pack: support SHA256 in packfilesethomson/sha256_pack
Diffstat (limited to 'tests/libgit2/odb/sorting.c')
-rw-r--r--tests/libgit2/odb/sorting.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/libgit2/odb/sorting.c b/tests/libgit2/odb/sorting.c
index 33ce289b5..dc4d615c7 100644
--- a/tests/libgit2/odb/sorting.c
+++ b/tests/libgit2/odb/sorting.c
@@ -82,7 +82,11 @@ void test_odb_sorting__override_default_backend_priority(void)
cl_git_pass(git_libgit2_opts(GIT_OPT_SET_ODB_LOOSE_PRIORITY, 5));
cl_git_pass(git_libgit2_opts(GIT_OPT_SET_ODB_PACKED_PRIORITY, 3));
- git_odb_backend_pack(&packed, "./testrepo.git/objects");
+ git_odb_backend_pack(&packed, "./testrepo.git/objects"
+#ifdef GIT_EXPERIMENTAL_SHA256
+ , NULL
+#endif
+ );
git_odb_backend_loose(&loose, "./testrepo.git/objects", NULL);
cl_git_pass(git_odb_open(&new_odb, cl_fixture("testrepo.git/objects"), NULL));