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:
Clark Boylan 2013-09-03 16:02:17 -07:00
parent 6781dd75bb
commit 54db26ddd0
1 changed files with 1 additions and 1 deletions

View File

@ -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 = ''