diff --git a/stagit.c b/stagit.c
index 966ee55..5bef865 100644
--- a/stagit.c
+++ b/stagit.c
@@ -842,15 +842,17 @@ writerefs(FILE *fp)
printtimeshort(fp, &(ci->author->when));
fputs("
", fp);
if (ci->summary) {
- fprintf(fp, "",
- relpath, ci->oid);
+ if (j)
+ fprintf(fp, "",
+ relpath, ci->oid);
if ((len = strlen(ci->summary)) > summarylen) {
xmlencode(fp, ci->summary, summarylen - 1);
fputs("…", fp);
} else {
xmlencode(fp, ci->summary, len);
}
- fputs("", fp);
+ if (j)
+ fputs("", fp);
}
fputs(" | ", fp);
if (ci->author)
|