]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/vfs.py
vfs: correctly handle reading small files.
[bup.git] / lib / bup / vfs.py
index c8f688a9c33f096311dabbcbda1bee2a595328ec..ea33818647398c9c247800f71e0ca166ea291376 100644 (file)
@@ -88,7 +88,7 @@ class _ChunkReader:
             self.blob = None
         else:
             self.it = None
-            self.blob = cp().get(hash.encode('hex'))
+            self.blob = ''.join(cp().join(hash.encode('hex')))[startofs:]
 
     def next(self, size):
         out = ''