hgext/lfs/wrapper.py
changeset 36603 dcb6fbaa43a8
parent 36142 60dd840a7fdb
child 36604 f6b9f9ddd0de
--- a/hgext/lfs/wrapper.py	Fri Mar 02 11:07:07 2018 -0500
+++ b/hgext/lfs/wrapper.py	Fri Mar 02 11:07:25 2018 -0500
@@ -90,7 +90,7 @@
 
     # replace contents with metadata
     longoid = 'sha256:%s' % oid
-    metadata = pointer.gitlfspointer(oid=longoid, size=str(len(text)))
+    metadata = pointer.gitlfspointer(oid=longoid, size='%d' % len(text))
 
     # by default, we expect the content to be binary. however, LFS could also
     # be used for non-binary content. add a special entry for non-binary data.