Show More
@@ -399,7 +399,7 b' def lfsfiles(context, mapping):' | |||
|
399 | 399 | def pointer(v): |
|
400 | 400 | # In the file spec, version is first and the other keys are sorted. |
|
401 | 401 | sortkeyfunc = lambda x: (x[0] != b'version', x) |
|
402 |
items = sorted( |
|
|
402 | items = sorted(pointers[v].items(), key=sortkeyfunc) | |
|
403 | 403 | return util.sortdict(items) |
|
404 | 404 | |
|
405 | 405 | makemap = lambda v: { |
@@ -40,7 +40,7 b' class gitlfspointer(dict):' | |||
|
40 | 40 | |
|
41 | 41 | def serialize(self): |
|
42 | 42 | sortkeyfunc = lambda x: (x[0] != b'version', x) |
|
43 |
items = sorted( |
|
|
43 | items = sorted(self.validate().items(), key=sortkeyfunc) | |
|
44 | 44 | return b''.join(b'%s %s\n' % (k, v) for k, v in items) |
|
45 | 45 | |
|
46 | 46 | def oid(self): |
General Comments 0
You need to be logged in to leave comments.
Login now