From 54db26ddd088675dcbc114db8c878eb21f72b0ee Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Tue, 3 Sep 2013 16:02:17 -0700 Subject: [PATCH] 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 --- make-index | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make-index b/make-index index 5132396..04aee4c 100755 --- a/make-index +++ b/make-index @@ -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 = ''