hgext/remotefilelog/shallowutil.py
changeset 41257 d08c816a11d3
parent 41140 92a5fb73b3d5
child 41258 a6b98c95bcf0
--- a/hgext/remotefilelog/shallowutil.py	Wed Jan 16 11:01:16 2019 -0500
+++ b/hgext/remotefilelog/shallowutil.py	Wed Jan 16 11:01:45 2019 -0500
@@ -121,7 +121,7 @@
     offset = 0
     buflen = len(metabuf)
     while buflen - offset >= 3:
-        key = metabuf[offset]
+        key = metabuf[offset:offset + 1]
         offset += 1
         metalen = struct.unpack_from('!H', metabuf, offset)[0]
         offset += 2