Browse Source

Fix read for ref deltas.

Jelmer Vernooij 15 years ago
parent
commit
be216d8baa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dulwich/pack.py

+ 1 - 1
dulwich/pack.py

@@ -442,7 +442,7 @@ def unpack_object(read):
         assert size == len(uncomp)
         return type, (delta_base_offset, uncomp), comp_len+raw_base, unused
     elif type == 7: # ref delta
-        basename = map.read(20)
+        basename = read(20)
         raw_base += 20
         uncomp, comp_len, unused = read_zlib(read, size)
         assert size == len(uncomp)