Skip to content
Snippets Groups Projects
Commit 100d5373 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

Release name is now in bytes

T270
parent 96fb46f1
No related branches found
Tags v0.0.3
No related merge requests found
...@@ -285,7 +285,7 @@ def release_identifier(release): ...@@ -285,7 +285,7 @@ def release_identifier(release):
components = [ components = [
b'object ', identifier_to_str(release['target']).encode(), b'\n', b'object ', identifier_to_str(release['target']).encode(), b'\n',
b'type ', target_type_to_git(release['target_type']), b'\n', b'type ', target_type_to_git(release['target_type']), b'\n',
b'tag ', release['name'].encode('utf-8'), b'\n', b'tag ', release['name'], b'\n',
] ]
if 'author' in release and release['author']: if 'author' in release and release['author']:
......
...@@ -293,7 +293,7 @@ class ReleaseIdentifier(unittest.TestCase): ...@@ -293,7 +293,7 @@ class ReleaseIdentifier(unittest.TestCase):
'id': '2b10839e32c4c476e9d94492756bb1a3e1ec4aa8', 'id': '2b10839e32c4c476e9d94492756bb1a3e1ec4aa8',
'target': b't\x1b"R\xa5\xe1Ml`\xa9\x13\xc7z`\x99\xab\xe7:\x85J', 'target': b't\x1b"R\xa5\xe1Ml`\xa9\x13\xc7z`\x99\xab\xe7:\x85J',
'target_type': 'revision', 'target_type': 'revision',
'name': 'v2.6.14', 'name': b'v2.6.14',
'author': { 'author': {
'name': b'Linus Torvalds', 'name': b'Linus Torvalds',
'email': b'torvalds@g5.osdl.org', 'email': b'torvalds@g5.osdl.org',
...@@ -317,7 +317,7 @@ wdLOnvj91G4wxYqrvThthbE= ...@@ -317,7 +317,7 @@ wdLOnvj91G4wxYqrvThthbE=
'id': b'&y\x1a\x8b\xcf\x0em3\xf4:\xefv\x82\xbd\xb5U#mV\xde', 'id': b'&y\x1a\x8b\xcf\x0em3\xf4:\xefv\x82\xbd\xb5U#mV\xde',
'target': '9ee1c939d1cb936b1f98e8d81aeffab57bae46ab', 'target': '9ee1c939d1cb936b1f98e8d81aeffab57bae46ab',
'target_type': 'revision', 'target_type': 'revision',
'name': 'v2.6.12', 'name': b'v2.6.12',
'message': b'''\ 'message': b'''\
This is the final 2.6.12 release This is the final 2.6.12 release
-----BEGIN PGP SIGNATURE----- -----BEGIN PGP SIGNATURE-----
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment