refs: only make commit link work for tags
1 files changed, 5 insertions(+), 3 deletions(-) | |||
---|---|---|---|
M | stagit.c | +5 | -3 |
1@@ -842,15 +842,17 @@ writerefs(FILE *fp)
2 printtimeshort(fp, &(ci->author->when));
3 fputs("</td><td>", fp);
4 if (ci->summary) {
5- fprintf(fp, "<a href=\"%scommit/%s.html\">",
6- relpath, ci->oid);
7+ if (j)
8+ fprintf(fp, "<a href=\"%scommit/%s.html\">",
9+ relpath, ci->oid);
10 if ((len = strlen(ci->summary)) > summarylen) {
11 xmlencode(fp, ci->summary, summarylen - 1);
12 fputs("…", fp);
13 } else {
14 xmlencode(fp, ci->summary, len);
15 }
16- fputs("</a>", fp);
17+ if (j)
18+ fputs("</a>", fp);
19 }
20 fputs("</td><td>", fp);
21 if (ci->author)