streaming: convert open_istream to use struct object_id
[gitweb.git] / builtin / index-pack.c
index b28ebfadd433727a4d8344ecd56e458f3abc03a7..ae11d2a610fdbcf14146c2311c1cf6292a0cfa0b 100644 (file)
@@ -771,7 +771,7 @@ static int check_collison(struct object_entry *entry)
 
        memset(&data, 0, sizeof(data));
        data.entry = entry;
-       data.st = open_istream(entry->idx.oid.hash, &type, &size, NULL);
+       data.st = open_istream(&entry->idx.oid, &type, &size, NULL);
        if (!data.st)
                return -1;
        if (size != entry->size || type != entry->type)