Преглед изворни кода

More stuff needed for pack writing

John Carr пре 16 година
родитељ
комит
2a52faae42
2 измењених фајлова са 3 додато и 2 уклоњено
  1. 2 2
      bin/dul-daemon
  2. 1 0
      dulwich/objects.py

+ 2 - 2
bin/dul-daemon

@@ -106,9 +106,9 @@ class GitBackend(Backend):
         w.write(struct.pack(">L", 2))
         w.write(struct.pack(">L", len(sha_queue)))
 
-        for type, sha in sha_queue:
+        for t, sha in sha_queue:
             obj = self.repo.get_object(sha)
-            write_pack_object(w, type, object)
+            write_pack_object(w, t, obj)
 
         # send sha1 of pack
         write(w.digest())

+ 1 - 0
dulwich/objects.py

@@ -149,6 +149,7 @@ class ShaFile(object):
     obj._num_type = type
     obj._text = string
     obj._update_contents()
+    obj._parse_text()
     return obj
 
   def _header(self):