tree-walk.c: remove the_repo from get_tree_entry()
[gitweb.git] / builtin / pack-objects.c
index b2be8869c236378ca70517d2c7431a6993952a3c..a030c24a4a3f26c27ddd4ab9aa6c691bd72f33e2 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;