Преглед на файлове

Fix fetch() without determine_wants argument.

Jelmer Vernooij преди 15 години
родител
ревизия
5a29a7266d
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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))