Be more explicit when stripping the .git suffix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user