summaryrefslogtreecommitdiff
path: root/src/futils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/futils.c')
-rw-r--r--src/futils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/futils.c b/src/futils.c
index a44820875..5d120eaed 100644
--- a/src/futils.c
+++ b/src/futils.c
@@ -216,7 +216,7 @@ int git_futils_readbuffer_updated(
p_close(fd);
if (checksum) {
- if ((error = git_hash_buf(&checksum_new, buf.ptr, buf.size)) < 0) {
+ if ((error = git_hash_buf(&checksum_new, buf.ptr, buf.size, GIT_HASH_ALGORITHM_SHA1)) < 0) {
git_buf_dispose(&buf);
return error;
}