grep: convert to struct object_id
[gitweb.git] / server-info.c
index f6c1a3dfb04bff5310a1b930b03478d88c9c2904..6f865b73a3aa014a9cecb13dbf86dede70a02a59 100644 (file)
@@ -53,7 +53,7 @@ static int add_info_ref(const char *path, const struct object_id *oid,
                        int flag, void *cb_data)
 {
        FILE *fp = cb_data;
-       struct object *o = parse_object(oid->hash);
+       struct object *o = parse_object(oid);
        if (!o)
                return -1;