sha1_file: convert hash_sha1_file to object_id
[gitweb.git] / builtin / unpack-objects.c
index 62ea264c46783374d0f1968c19ea7581498a1f87..85a40d1af797f760df1e5c4df20984d6317959a6 100644 (file)
@@ -258,7 +258,7 @@ static void write_object(unsigned nr, enum object_type type,
        } else {
                struct object *obj;
                int eaten;
-               hash_sha1_file(buf, size, typename(type), obj_list[nr].oid.hash);
+               hash_object_file(buf, size, typename(type), &obj_list[nr].oid);
                added_object(nr, type, buf, size);
                obj = parse_object_buffer(&obj_list[nr].oid, type, size, buf,
                                          &eaten);