aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ui-refs.c2
-rw-r--r--ui-shared.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/ui-refs.c b/ui-refs.c
index e066ed1..d65b060 100644
--- a/ui-refs.c
+++ b/ui-refs.c
@@ -67,7 +67,7 @@ static int print_branch(struct refinfo *ref)
html("</td><td>");
if (ref->object->type == OBJ_COMMIT) {
- cgit_commit_link(info->subject, NULL, NULL, name, NULL, NULL);
+ cgit_commit_link2(info->subject, NULL, NULL, name, NULL, NULL, true);
html("</td><td>");
cgit_open_filter(ctx.repo->email_filter, info->author_email, "refs");
cgit_author_link(info->author, name);
diff --git a/ui-shared.c b/ui-shared.c
index 2d695a7..059f449 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -350,18 +350,18 @@ void cgit_log_link(const char *name, const char *title, const char *class,
void cgit_commit_link(char *name, const char *title, const char *class,
const char *head, const char *rev, const char *path)
{
- if (strlen(name) > ctx.cfg.max_msg_len && ctx.cfg.max_msg_len >= 15) {
- name[ctx.cfg.max_msg_len] = '\0';
- name[ctx.cfg.max_msg_len - 1] = '.';
- name[ctx.cfg.max_msg_len - 2] = '.';
- name[ctx.cfg.max_msg_len - 3] = '.';
- }
cgit_commit_link2(name, title, class, head, rev, path, false);
}
void cgit_commit_link2(char *name, const char *title, const char *class,
const char *head, const char *rev, const char *path, bool checkForIssueLink)
{
+ if (strlen(name) > ctx.cfg.max_msg_len && ctx.cfg.max_msg_len >= 15) {
+ name[ctx.cfg.max_msg_len] = '\0';
+ name[ctx.cfg.max_msg_len - 1] = '.';
+ name[ctx.cfg.max_msg_len - 2] = '.';
+ name[ctx.cfg.max_msg_len - 3] = '.';
+ }
if (checkForIssueLink) {
int last_match = 0;
int offset = 0;