aboutsummaryrefslogtreecommitdiff
path: root/ui-summary.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'ui-summary.c')
-rw-r--r--ui-summary.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/ui-summary.c b/ui-summary.c
index ba90510..04a466a 100644
--- a/ui-summary.c
+++ b/ui-summary.c
@@ -58,17 +58,11 @@ static int print_branch(struct refinfo *ref)
html("<tr><td>");
cgit_log_link(name, NULL, NULL, name, NULL, NULL, 0);
html("</td><td>");
-
- if (ref->object->type == OBJ_COMMIT) {
- cgit_print_age(info->commit->date, -1, NULL);
- html("</td><td>");
- html_txt(info->author);
- html("</td><td>");
- cgit_commit_link(info->subject, NULL, NULL, name, NULL);
- } else {
- html("</td><td></td><td>");
- cgit_object_link(ref->object);
- }
+ cgit_print_age(info->commit->date, -1, NULL);
+ html("</td><td>");
+ html_txt(info->author);
+ html("</td><td>");
+ cgit_commit_link(info->subject, NULL, NULL, name, NULL);
html("</td></tr>\n");
return 0;
}