object: add repository argument to parse_object_buffer
[gitweb.git] / builtin / index-pack.c
index 74fe2973e1256e092652fce28ba2036cc3203af9..9c08cf3ceadaff8b56aecf2421d06c060fcf835a 100644 (file)
@@ -851,7 +851,8 @@ static void sha1_object(const void *data, struct object_entry *obj_entry,
                         * we do not need to free the memory here, as the
                         * buf is deleted by the caller.
                         */
-                       obj = parse_object_buffer(oid, type, size, buf,
+                       obj = parse_object_buffer(the_repository, oid, type,
+                                                 size, buf,
                                                  &eaten);
                        if (!obj)
                                die(_("invalid %s"), type_name(type));