]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/unpack-objects.c
object-file API: have hash_object_file() take "enum object_type"
[thirdparty/git.git] / builtin / unpack-objects.c
index 808041551fdf58e07c4af6837ff0bce2bad10022..dbeb0680a5856300e3a14db9387193a5fe65a0fc 100644 (file)
@@ -266,7 +266,7 @@ static void write_object(unsigned nr, enum object_type type,
        } else {
                struct object *obj;
                int eaten;
-               hash_object_file(the_hash_algo, buf, size, type_name(type),
+               hash_object_file(the_hash_algo, buf, size, type,
                                 &obj_list[nr].oid);
                added_object(nr, type, buf, size);
                obj = parse_object_buffer(the_repository, &obj_list[nr].oid,