stagit

custom fork of stagit
Index Commits Files Refs README LICENSE
commit ffce38cf363f3793614dbe1facdacd037d4eb72c
parent f4c3911f681a31e09c5fb9d2c2a54b54b8f0fd92
Author: mjkloeckner <martin.cachari@gmail.com>
Date:   Wed,  4 Jan 2023 16:14:10 -0300

add missing anchor path

Diffstat:
Mstagit.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/stagit.c b/stagit.c
@@ -1214,7 +1214,8 @@ writefilestree(FILE *fp, git_tree *tree, const char *path)
                 fputs("</a></td>", fp);
                 fputs("<td id=\"file-size\" class=\"num\">", fp);
                 fprintf(fp, "<a href=\"%s", relpath);
-                fputs(">", fp);
+                percentencode(fp, filepath, strlen(filepath));
+                fputs("\">", fp);
 
                 if (lc > 0)
                     fprintf(fp, "%zuL", lc);