make tag_history_from_git.py work under py3
Change-Id: Id114c9d6b9f946f552226c2f112dd9584b3d451b Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
@@ -82,7 +82,7 @@ series_data = {}
|
||||
os.chdir(repo)
|
||||
|
||||
# Retrieve the existing tags
|
||||
tags_out = subprocess.check_output(['git', 'tag'])
|
||||
tags_out = subprocess.check_output(['git', 'tag']).decode('utf-8')
|
||||
tags = [t.strip() for t in tags_out.splitlines() if t.strip()]
|
||||
|
||||
repo_namespace = os.path.basename(os.path.dirname(repo))
|
||||
@@ -98,7 +98,7 @@ for tag in tags:
|
||||
try:
|
||||
show_output = subprocess.check_output([
|
||||
'git', 'show', '--no-patch', '--pretty=%H %ct', tag,
|
||||
], stderr=dev_null)
|
||||
], stderr=dev_null).decode('utf-8')
|
||||
interesting = show_output.rstrip().splitlines()[-1]
|
||||
print(tag + ' ' + interesting)
|
||||
sha, ignore, datestr = interesting.partition(' ')
|
||||
|
||||
Reference in New Issue
Block a user