Merge branch 'jk/sort-iter-test-output'
[gitweb.git] / builtin / pack-objects.c
index 000dc4b872b23d555d87f475511ca60d601bc4a1..267c562b1f81dad2c42e2392a76ff0a269d38f65 100644 (file)
@@ -1428,7 +1428,8 @@ static void add_preferred_base(struct object_id *oid)
        if (window <= num_preferred_base++)
                return;
 
-       data = read_object_with_reference(oid, tree_type, &size, &tree_oid);
+       data = read_object_with_reference(the_repository, oid,
+                                         tree_type, &size, &tree_oid);
        if (!data)
                return;