stagit

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

add missing anchor path

Diffstat:
Mstagit.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/stagit.c b/stagit.c
@@ -1195,7 +1195,9 @@ writefilestree(FILE *fp, git_tree *tree, const char *path)
                 percentencode(fp, filepath, strlen(filepath));
                 fputs("\'\"><td id=\"file-mode\">", fp);
 
-                fprintf(fp, "<a href=\"%s>", relpath);
+                fprintf(fp, "<a href=\"%s", relpath);
+                percentencode(fp, filepath, strlen(filepath));
+                fputs("\">",fp);
                 fputs(filemode(git_tree_entry_filemode(entry)), fp);
                 fputs("</a></td>", fp);