X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=convert.c;h=33507ee0a943e59b1af50576039ea8770251a2d0;hb=2dcde20e1c55fc2e3f9e9e6d48e93c39ec5661d2;hp=797e0bd0b14cbd665a638cf0a22ca7f9f3df04d3;hpb=7ad5c44d9ce559703245d389aa71c4445dc9359c;p=thirdparty%2Fgit.git diff --git a/convert.c b/convert.c index 797e0bd0b1..33507ee0a9 100644 --- a/convert.c +++ b/convert.c @@ -1146,7 +1146,7 @@ static int ident_to_worktree(const char *src, size_t len, /* are we "faking" in place editing ? */ if (src == buf->buf) to_free = strbuf_detach(buf, NULL); - hash_object_file(src, len, "blob", &oid); + hash_object_file(the_hash_algo, src, len, "blob", &oid); strbuf_grow(buf, len + cnt * (the_hash_algo->hexsz + 3)); for (;;) {