aboutsummaryrefslogtreecommitdiffstats
path: root/stagit.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <[email protected]>2016-01-04 23:55:39 +0100
committerHiltjo Posthuma <[email protected]>2016-01-04 23:55:39 +0100
commit444e41b315925181f3ead6f2c3dd1354475e90e3 (patch)
treef4d6b73fbfd4189622fb9ec3ba0e927a1646e64a /stagit.c
parenta89e756c9e59d41cb1e392616333be50b3960c71 (diff)
downloadstagit-444e41b315925181f3ead6f2c3dd1354475e90e3.tar.gz
stagit-444e41b315925181f3ead6f2c3dd1354475e90e3.zip
fix link to commit from log page
Diffstat (limited to '')
-rw-r--r--stagit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/stagit.c b/stagit.c
index 27db7a6..92107cf 100644
--- a/stagit.c
+++ b/stagit.c
@@ -463,9 +463,8 @@ writelog(FILE *fp, const char *branch)
fputs("<table id=\"log\"><thead>\n<tr><td>Age</td><td>Commit message</td>"
"<td>Author</td><td>Files</td><td class=\"num\">+</td>"
"<td class=\"num\">-</td></tr>\n</thead><tbody>\n", fp);
+ relpath = "../";
while (!git_revwalk_next(&id, w)) {
- relpath = "";
-
if (!(ci = commitinfo_getbyoid(&id)))
break;
@@ -494,7 +493,6 @@ writelog(FILE *fp, const char *branch)
fprintf(fp, "-%zu", ci->delcount);
fputs("</td></tr>\n", fp);
- relpath = "../";
printshowfile(ci);
commitinfo_free(ci);