regression: do not show unset or empty tags
authorHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 20 Jul 2020 12:15:12 +0000 (14:15 +0200)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Mon, 20 Jul 2020 12:15:12 +0000 (14:15 +0200)
stagit.c

index ff81b53221eaae64de22a35e292f9157331b1d2c..0377ad80674786725eb5917cca921597b5c63fa9 100644 (file)
--- a/stagit.c
+++ b/stagit.c
@@ -797,7 +797,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char *tag)
        }
        if (ci->summary) {
                fputs("<title type=\"text\">", fp);
-               if (tag) {
+               if (tag && tag[0]) {
                        fputs("[", fp);
                        xmlencode(fp, tag, strlen(tag));
                        fputs("] ", fp);