Merge branch 'bc/object-id'
[gitweb.git] / builtin / reflog.c
index 4719a5354cf182eb91b257a99da97b9b81da5257..a89bd1dd25252ddfe5ad6b32ee89950d3a4b258f 100644 (file)
@@ -75,7 +75,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;