Author: Lars Hjemli <hjemli@gmail.com>
ui-log.c: handle lightweight tags when printing commit decorations Signed-off-by: Lars Hjemli <hjemli@gmail.com>
ui-log.c | 4 ++++
diff --git a/ui-log.c b/ui-log.c index ba2ab0314186fbbed847907f113227d879767cea..0b37785c3c2a2c396d7cdf3fcac70cce1e20aff2 100644 --- a/ui-log.c +++ b/ui-log.c @@ -53,6 +53,10 @@ else if (!prefixcmp(deco->name, "tag: refs/tags/")) { strncpy(buf, deco->name + 15, sizeof(buf) - 1); cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf); } + else if (!prefixcmp(deco->name, "refs/tags/")) { + strncpy(buf, deco->name + 10, sizeof(buf) - 1); + cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf); + } else if (!prefixcmp(deco->name, "refs/remotes/")) { strncpy(buf, deco->name + 13, sizeof(buf) - 1); cgit_log_link(buf, NULL, "remote-deco", NULL,