mirror of
git://git.codemadness.org/stagit
synced 2025-03-09 09:09:12 -04:00
Be more explicit when stripping the .git suffix
This commit is contained in:
parent
cae9950407
commit
264aef81d5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user