|
diff --git a/ui-log.c b/ui-log.c index ba2ab03..0b37785 100644 --- a/ ui-log.c+++ b/ ui-log.c |
|
@@ -52,8 +52,12 @@ void show_commit_decorations(struct commit *commit) |
52 | else if (!prefixcmp(deco->name, "tag: refs/tags/")) { |
52 | else if (!prefixcmp(deco->name, "tag: refs/tags/")) { |
53 | strncpy(buf, deco->name + 15, sizeof(buf) - 1); |
53 | strncpy(buf, deco->name + 15, sizeof(buf) - 1); |
54 | cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf); |
54 | cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf); |
55 | } |
55 | } |
| |
56 | else if (!prefixcmp(deco->name, "refs/tags/")) { |
| |
57 | strncpy(buf, deco->name + 10, sizeof(buf) - 1); |
| |
58 | cgit_tag_link(buf, NULL, "tag-deco", ctx.qry.head, buf); |
| |
59 | } |
56 | else if (!prefixcmp(deco->name, "refs/remotes/")) { |
60 | else if (!prefixcmp(deco->name, "refs/remotes/")) { |
57 | strncpy(buf, deco->name + 13, sizeof(buf) - 1); |
61 | strncpy(buf, deco->name + 13, sizeof(buf) - 1); |
58 | cgit_log_link(buf, NULL, "remote-deco", NULL, |
62 | cgit_log_link(buf, NULL, "remote-deco", NULL, |
59 | sha1_to_hex(commit->object.sha1), NULL, |
63 | sha1_to_hex(commit->object.sha1), NULL, |
|