Browse Source

Fix fetch() without determine_wants argument.

Jelmer Vernooij 15 years ago
parent
commit
5a29a7266d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      dulwich/repo.py

+ 2 - 0
dulwich/repo.py

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