Handle lack of tags when running make-index.
* make-index: Make index runs `git tag -n` to create entries for tags on the generated index page. The output of this command is split. Remove empty strings from the resulting list to handle the case when no tags are present. Change-Id: Ib0daa4f22274ec107a722f559c2b143f270b542f
This commit is contained in:
parent
6781dd75bb
commit
54db26ddd0
@ -38,7 +38,7 @@ def git_branches():
|
||||
|
||||
def git_tags():
|
||||
r, tag_list = run_local(['git', 'tag', '-n'])
|
||||
return tag_list.split('\n')
|
||||
return [x for x in tag_list.split('\n') if x]
|
||||
|
||||
current = ''
|
||||
previous = ''
|
||||
|
Loading…
Reference in New Issue
Block a user