]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-tag.c
shared.c: avoid SEGFAULT when checking for binary buffers
[cgit.git] / ui-tag.c
index 54b9f4c71b6372090d2df6ffe2aa487ffa386c9a..0e056e016092f53c508d86cdefd3e76f0fcb7d36 100644 (file)
--- a/ui-tag.c
+++ b/ui-tag.c
@@ -75,6 +75,15 @@ void cgit_print_tag(char *revname)
                html("</td></tr>\n");
                html("</table>\n");
                print_tag_content(info->msg);
-       }
+       } else {
+               html("<table class='commit-info'>\n");
+               htmlf("<tr><td>Tag name</td><td>");
+               html_txt(revname);
+               html("</td></tr>\n");
+               html("<tr><td>Tagged object</td><td>");
+               cgit_object_link(obj);
+               html("</td></tr>\n");
+               html("</table>\n");
+        }
        return;
 }