projects
/
forks
/
stagit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cae9950
)
Be more explicit when stripping the .git suffix
author
sin
<sin@2f30.org>
Wed, 6 Jan 2016 17:44:22 +0000
(17:44 +0000)
committer
sin
<sin@2f30.org>
Wed, 6 Jan 2016 17:45:57 +0000
(17:45 +0000)
stagit-index.c
patch
|
blob
|
history
diff --git
a/stagit-index.c
b/stagit-index.c
index 44b603cddf72d8aae6e843a66406b37ca0a64590..9c31bd7038874a3822b1d84a5efaf7d546df5a51 100644
(file)
--- 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);