Commit be225be7 by Michael Schubert

tests/pack: fixup 6774b107

Initialize the hash ctx with git_hash_ctx_init, not git_hash_init.
parent 989abe9b
......@@ -106,9 +106,10 @@ void test_pack_packbuilder__create_pack(void)
cl_git_pass(git_futils_readbuffer(&buf, "testpack.pack"));
cl_git_pass(git_hash_init(&ctx));
cl_git_pass(git_hash_ctx_init(&ctx));
cl_git_pass(git_hash_update(&ctx, buf.ptr, buf.size));
cl_git_pass(git_hash_final(&hash, &ctx));
git_hash_ctx_cleanup(&ctx);
git_buf_free(&buf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment