Przeglądaj źródła

Clarify that objects are being passed to send_pack, not shas.

Jelmer Vernooij 16 lat temu
rodzic
commit
d1753af2ad
1 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 3
      dulwich/client.py

+ 2 - 3
dulwich/client.py

@@ -130,9 +130,8 @@ class GitClient(object):
             if old_sha1 != "0"*40:
                 have.append(old_sha1)
         self.proto.write_pkt_line(None)
-        shas = generate_pack_contents(want, have)
-            
-        (entries, sha) = write_pack_data(self.proto, shas, len(shas))
+        objects = generate_pack_contents(want, have)
+        (entries, sha) = write_pack_data(self.proto.write_file(), objects, len(objects))
         self.proto.write(sha)
         
         # read the final confirmation sha