]> git.ipfire.org Git - thirdparty/git.git/blobdiff - convert.c
Merge branch 'mt/use-passed-repo-more-in-funcs'
[thirdparty/git.git] / convert.c
index 2b8549e5f1937632bcc9c61abc21892ddb70e49f..5ead3ce678bb746fa82cef9e3b8e8ac407aa0741 100644 (file)
--- 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 (;;) {