]> git.ipfire.org Git - thirdparty/git.git/blobdiff - convert.c
object-file API: have hash_object_file() take "enum object_type"
[thirdparty/git.git] / convert.c
index df7186bd813a2eebabeb57bb6ef0bef2d8b5cc9b..d88072fe3207b9231f52a8ed471f13cd99054bff 100644 (file)
--- a/convert.c
+++ b/convert.c
@@ -1159,7 +1159,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(the_hash_algo, src, len, "blob", &oid);
+       hash_object_file(the_hash_algo, src, len, OBJ_BLOB, &oid);
 
        strbuf_grow(buf, len + cnt * (the_hash_algo->hexsz + 3));
        for (;;) {