sha1_file: convert read_sha1_file to struct object_id
[gitweb.git] / builtin / reflog.c
index ac3dcd7a51170cd9146d044f6ab70203e6591507..25f7c5ef0b8887d5a1b5003e7a6d02da081aa7c9 100644 (file)
@@ -74,7 +74,7 @@ static int tree_is_complete(const struct object_id *oid)
        if (!tree->buffer) {
                enum object_type type;
                unsigned long size;
-               void *data = read_sha1_file(oid->hash, &type, &size);
+               void *data = read_object_file(oid, &type, &size);
                if (!data) {
                        tree->object.flags |= INCOMPLETE;
                        return 0;