refs: only make commit link work for tags
This commit is contained in:
parent
512a31e81f
commit
9978fecb18
8
stagit.c
8
stagit.c
|
@ -842,15 +842,17 @@ writerefs(FILE *fp)
|
||||||
printtimeshort(fp, &(ci->author->when));
|
printtimeshort(fp, &(ci->author->when));
|
||||||
fputs("</td><td>", fp);
|
fputs("</td><td>", fp);
|
||||||
if (ci->summary) {
|
if (ci->summary) {
|
||||||
fprintf(fp, "<a href=\"%scommit/%s.html\">",
|
if (j)
|
||||||
relpath, ci->oid);
|
fprintf(fp, "<a href=\"%scommit/%s.html\">",
|
||||||
|
relpath, ci->oid);
|
||||||
if ((len = strlen(ci->summary)) > summarylen) {
|
if ((len = strlen(ci->summary)) > summarylen) {
|
||||||
xmlencode(fp, ci->summary, summarylen - 1);
|
xmlencode(fp, ci->summary, summarylen - 1);
|
||||||
fputs("…", fp);
|
fputs("…", fp);
|
||||||
} else {
|
} else {
|
||||||
xmlencode(fp, ci->summary, len);
|
xmlencode(fp, ci->summary, len);
|
||||||
}
|
}
|
||||||
fputs("</a>", fp);
|
if (j)
|
||||||
|
fputs("</a>", fp);
|
||||||
}
|
}
|
||||||
fputs("</td><td>", fp);
|
fputs("</td><td>", fp);
|
||||||
if (ci->author)
|
if (ci->author)
|
||||||
|
|
Loading…
Reference in a new issue