Browse Source

recency is a list of tuple of (obj, path), not a list of obj

John Carr 16 years ago
parent
commit
46eacc2d39
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dulwich/pack.py

+ 1 - 1
dulwich/pack.py

@@ -603,7 +603,7 @@ def write_pack_data(f, objects, num_objects, window=10):
     f.write("PACK")               # Pack header
     f.write(struct.pack(">L", 2)) # Pack version
     f.write(struct.pack(">L", num_objects)) # Number of objects in pack
-    for o in recency:
+    for o, path in recency:
         sha1 = o.sha().digest()
         crc32 = o.crc32()
         orig_t, raw = o.as_raw_string()