diff options
Diffstat (limited to 'tests/libgit2/odb/foreach.c')
-rw-r--r-- | tests/libgit2/odb/foreach.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/libgit2/odb/foreach.c b/tests/libgit2/odb/foreach.c index 98b5d80b7..5e4dae41b 100644 --- a/tests/libgit2/odb/foreach.c +++ b/tests/libgit2/odb/foreach.c @@ -52,7 +52,15 @@ void test_odb_foreach__one_pack(void) int nobj = 0; cl_git_pass(git_odb_new(&_odb, NULL)); - cl_git_pass(git_odb_backend_one_pack(&backend, cl_fixture("testrepo.git/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.idx"))); + cl_git_pass(git_odb_backend_one_pack( + &backend, + cl_fixture("testrepo.git/objects/pack/pack-a81e489679b7d3418f9ab594bda8ceb37dd4c695.idx") + +#ifdef GIT_EXPERIMENTAL_SHA256 +, NULL +#endif + + )); cl_git_pass(git_odb_add_backend(_odb, backend, 1)); _repo = NULL; |