stagit
static git repository generator
git clone https://9o.is/git/stagit.git
commit a3a757fb8fd164f3750d4c3cca33f39c8b83f14a parent ebf1e139cb39feeac319d9a5d51c2513af69f953 Author: sin <sin@2f30.org> Date: Wed, 6 Jan 2016 17:44:22 +0000 Be more explicit when stripping the .git suffix Diffstat:
| M | stagit-index.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/stagit-index.c b/stagit-index.c @@ -152,7 +152,8 @@ writelog(FILE *fp) if (!(stripped_name = strdup(name))) err(1, "strdup"); if ((p = strrchr(stripped_name, '.'))) - *p = '\0'; + if (!strcmp(p, ".git")) + *p = '\0'; xmlencode(fp, stripped_name, strlen(stripped_name)); fputs("</a></td><td>", fp);