sha1_file: convert read_sha1_file to struct object_id
[gitweb.git] / object.c
index 4063e955dba1c32de6bd878324df858be3b0f164..8e32f0d33b2a3ab35cb0a2d3148482b7d33417cb 100644 (file)
--- a/object.c
+++ b/object.c
@@ -266,7 +266,7 @@ struct object *parse_object(const struct object_id *oid)
                return lookup_object(oid->hash);
        }
 
-       buffer = read_sha1_file(oid->hash, &type, &size);
+       buffer = read_object_file(oid, &type, &size);
        if (buffer) {
                struct object_id reploid;
                hashcpy(reploid.hash, repl);