summaryrefslogtreecommitdiff
path: root/tests/pack/packbuilder.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-09-29 21:31:17 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-10-01 08:12:07 -0400
commit2a713da1ec2e9f74c9edc75b06540ab095c68c34 (patch)
tree488891e9b76cf54582738c48674e7dfde81cc638 /tests/pack/packbuilder.c
parent3fff59705fec852b97639364ca7b3e84ff7040b7 (diff)
downloadlibgit2-2a713da1ec2e9f74c9edc75b06540ab095c68c34.tar.gz
hash: accept the algorithm in inputs
Diffstat (limited to 'tests/pack/packbuilder.c')
-rw-r--r--tests/pack/packbuilder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pack/packbuilder.c b/tests/pack/packbuilder.c
index 5f5441a5d..42d446a8b 100644
--- a/tests/pack/packbuilder.c
+++ b/tests/pack/packbuilder.c
@@ -126,7 +126,7 @@ void test_pack_packbuilder__create_pack(void)
cl_git_pass(git_futils_readbuffer(&buf, git_buf_cstr(&path)));
- cl_git_pass(git_hash_ctx_init(&ctx));
+ cl_git_pass(git_hash_ctx_init(&ctx, GIT_HASH_ALGORITHM_SHA1));
cl_git_pass(git_hash_update(&ctx, buf.ptr, buf.size));
cl_git_pass(git_hash_final(&hash, &ctx));
git_hash_ctx_cleanup(&ctx);