소스 검색

in update_refs(), deleted refs should be set to ZERO_SHA, not None.

Jelmer Vernooij 8 년 전
부모
커밋
f8dc641571
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      dulwich/client.py

+ 4 - 4
dulwich/client.py

@@ -251,7 +251,7 @@ class GitClient(object):
         :param path: Repository path (as bytestring)
         :param update_refs: Function to determine changes to remote refs.
             Receive dict with existing remote refs, returns dict with
-            changed refs (name -> sha, where sha=None for deletions)
+            changed refs (name -> sha, where sha=ZERO_SHA for deletions)
         :param generate_pack_contents: Function that can return a sequence of
             the shas of the objects to upload.
         :param progress: Optional progress function
@@ -550,7 +550,7 @@ class TraditionalGitClient(GitClient):
         :param path: Repository path (as bytestring)
         :param update_refs: Function to determine changes to remote refs.
             Receive dict with existing remote refs, returns dict with
-            changed refs (name -> sha, where sha=None for deletions)
+            changed refs (name -> sha, where sha=ZERO_SHA for deletions)
         :param generate_pack_contents: Function that can return a sequence of
             the shas of the objects to upload.
         :param progress: Optional callback called with progress updates
@@ -863,7 +863,7 @@ class LocalGitClient(GitClient):
         :param path: Repository path (as bytestring)
         :param update_refs: Function to determine changes to remote refs.
             Receive dict with existing remote refs, returns dict with
-            changed refs (name -> sha, where sha=None for deletions)
+            changed refs (name -> sha, where sha=ZERO_SHA for deletions)
         :param generate_pack_contents: Function that can return a sequence of
             the shas of the objects to upload.
         :param progress: Optional progress function
@@ -1202,7 +1202,7 @@ class HttpGitClient(GitClient):
         :param path: Repository path (as bytestring)
         :param update_refs: Function to determine changes to remote refs.
             Receive dict with existing remote refs, returns dict with
-            changed refs (name -> sha, where sha=None for deletions)
+            changed refs (name -> sha, where sha=ZERO_SHA for deletions)
         :param generate_pack_contents: Function that can return a sequence of
             the shas of the objects to upload.
         :param progress: Optional progress function