Browse Source

Fix fetch() without determine_wants argument.

Jelmer Vernooij 15 năm trước cách đây
mục cha
commit
5a8187d1a0
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      dulwich/repo.py

+ 2 - 0
dulwich/repo.py

@@ -250,6 +250,8 @@ class Repo(object):
             fetch.
         :param progress: Optional progress function
         """
+        if determine_wants is None:
+            determine_wants = lambda heads: heads.values()
         target.object_store.add_objects(
             self.fetch_objects(determine_wants, target.get_graph_walker(),
                 progress))