From 9978fecb183a080c66b59a0327fbad6e5087322e Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Wed, 6 Jan 2016 19:13:51 +0100 Subject: [PATCH] refs: only make commit link work for tags --- stagit.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) -- libgit2 1.1.1