sha1_file: convert read_sha1_file to struct object_id
[gitweb.git] / streaming.c
index 3f4be1ea2c3e9ed68190b8e2bb54c9b3de6d853b..72a3ca8d08d7a67cf03a9e278225f52a70301f5b 100644 (file)
@@ -492,7 +492,7 @@ static struct stream_vtbl incore_vtbl = {
 
 static open_method_decl(incore)
 {
-       st->u.incore.buf = read_sha1_file_extended(oid->hash, type, &st->size, 0);
+       st->u.incore.buf = read_object_file_extended(oid, type, &st->size, 0);
        st->u.incore.read_ptr = 0;
        st->vtbl = &incore_vtbl;