瀏覽代碼

Fix pack sending

John Carr 16 年之前
父節點
當前提交
86ac6813f5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      bin/dul-daemon

+ 2 - 2
bin/dul-daemon

@@ -107,11 +107,11 @@ class GitBackend(Backend):
         w.write(struct.pack(">L", len(sha_queue)))
         w.write(struct.pack(">L", len(sha_queue)))
 
 
         for t, sha in sha_queue:
         for t, sha in sha_queue:
-            obj = self.repo.get_object(sha)
+            ty, obj = self.repo.get_object(sha).as_raw_string()
             write_pack_object(w, t, obj)
             write_pack_object(w, t, obj)
 
 
         # send sha1 of pack
         # send sha1 of pack
-        write(w.digest())
+        write(w.digest)
         
         
 
 
 if __name__ == "__main__":
 if __name__ == "__main__":