Be more explicit when stripping the .git suffix
This commit is contained in:
parent
cae9950407
commit
264aef81d5
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue