소스 검색

Pass in commit during shallow clone, to avoid extra lookup.

Jelmer Vernooij 11 년 전
부모
커밋
9a74b9f082
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      dulwich/repo.py

+ 1 - 1
dulwich/repo.py

@@ -280,7 +280,7 @@ class BaseRepo(object):
               self.object_store.find_missing_objects(
                   haves, wants, progress,
                   get_tagged,
-                  get_parents=lambda commit: self.get_parents(commit.id)))
+                  get_parents=lambda commit: self.get_parents(commit.id, commit)))
             # Unset the shallow commits in the object_store to prevent pollution
             self._remove_graftpoints(shallow_grafts)
             return shas