##// END OF EJS Templates
lfs: convert hexdigest to bytes using sysbytes...
Augie Fackler -
r36622:f6b9f9dd default
parent child Browse files
Show More
@@ -10,7 +10,7 b' from __future__ import absolute_import'
10 import hashlib
10 import hashlib
11
11
12 from mercurial.i18n import _
12 from mercurial.i18n import _
13 from mercurial.node import bin, nullid, short
13 from mercurial.node import bin, hex, nullid, short
14
14
15 from mercurial import (
15 from mercurial import (
16 error,
16 error,
@@ -85,7 +85,7 b' def writetostore(self, text):'
85 text = text[offset:]
85 text = text[offset:]
86
86
87 # git-lfs only supports sha256
87 # git-lfs only supports sha256
88 oid = hashlib.sha256(text).hexdigest()
88 oid = hex(hashlib.sha256(text).digest())
89 self.opener.lfslocalblobstore.write(oid, text)
89 self.opener.lfslocalblobstore.write(oid, text)
90
90
91 # replace contents with metadata
91 # replace contents with metadata
General Comments 0
You need to be logged in to leave comments. Login now