소스 검색

Fix fetch() without determine_wants argument.

Jelmer Vernooij 15 년 전
부모
커밋
5a8187d1a0
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))