Explorar o código

Fix pack sending

John Carr %!s(int64=16) %!d(string=hai) anos
pai
achega
86ac6813f5
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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)))
 
         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)
 
         # send sha1 of pack
-        write(w.digest())
+        write(w.digest)
         
 
 if __name__ == "__main__":