fix link to commit from log page - stagit-gopher - A git gopher frontend. (mirr… | |
git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2h… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit 444e41b315925181f3ead6f2c3dd1354475e90e3 | |
parent a89e756c9e59d41cb1e392616333be50b3960c71 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Mon, 4 Jan 2016 23:55:39 +0100 | |
fix link to commit from log page | |
Diffstat: | |
M stagit.c | 4 +--- | |
1 file changed, 1 insertion(+), 3 deletions(-) | |
--- | |
diff --git 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>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); |