object: convert parse_object* to take struct object_id
[gitweb.git] / builtin / unpack-objects.c
index 7d5efa2b3b5a7b83c7765765e360757d6f7d282a..8bc9997767adbb77cc8af81b2b289e22f2b61c5a 100644 (file)
@@ -260,7 +260,8 @@ static void write_object(unsigned nr, enum object_type type,
                int eaten;
                hash_sha1_file(buf, size, typename(type), obj_list[nr].oid.hash);
                added_object(nr, type, buf, size);
-               obj = parse_object_buffer(obj_list[nr].oid.hash, type, size, buf, &eaten);
+               obj = parse_object_buffer(&obj_list[nr].oid, type, size, buf,
+                                         &eaten);
                if (!obj)
                        die("invalid %s", typename(type));
                add_object_buffer(obj, buf, size);