From f05e6b0fcb3b874180970d06ebcde05fb5aea470 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 20 Jul 2020 14:15:12 +0200 Subject: regression: do not show unset or empty tags --- stagit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stagit.c') diff --git a/stagit.c b/stagit.c index ff81b53..0377ad8 100644 --- a/stagit.c +++ b/stagit.c @@ -797,7 +797,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char *tag) } if (ci->summary) { fputs("", fp); - if (tag) { + if (tag && tag[0]) { fputs("[", fp); xmlencode(fp, tag, strlen(tag)); fputs("] ", fp); -- cgit v1.2.3