iBe more explicit when stripping the .git suffix - stagit-gopher - A git gopher frontend. (mirror) Err bitreich.org 70 hgit clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ URL:git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ bitreich.org 70 1Log /scm/stagit-gopher/log.gph bitreich.org 70 1Files /scm/stagit-gopher/files.gph bitreich.org 70 1Refs /scm/stagit-gopher/refs.gph bitreich.org 70 1Tags /scm/stagit-gopher/tag bitreich.org 70 1README /scm/stagit-gopher/file/README.gph bitreich.org 70 1LICENSE /scm/stagit-gopher/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 264aef81d5f5eeb39c194142a73cdfe84c6aeddb /scm/stagit-gopher/commit/264aef81d5f5eeb39c194142a73cdfe84c6aeddb.gph bitreich.org 70 1parent cae9950407009652d52a2c140d136d3f14b4095c /scm/stagit-gopher/commit/cae9950407009652d52a2c140d136d3f14b4095c.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Wed, 6 Jan 2016 17:44:22 +0000 Err bitreich.org 70 i Err bitreich.org 70 iBe more explicit when stripping the .git suffix Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M stagit-index.c | 3 ++- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 2 insertions(+), 1 deletion(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/stagit-index.c b/stagit-index.c /scm/stagit-gopher/file/stagit-index.c.gph bitreich.org 70 i@@ -152,7 +152,8 @@ writelog(FILE *fp) Err bitreich.org 70 i if (!(stripped_name = strdup(name))) Err bitreich.org 70 i err(1, "strdup"); Err bitreich.org 70 i if ((p = strrchr(stripped_name, '.'))) Err bitreich.org 70 i- *p = '\0'; Err bitreich.org 70 i+ if (!strcmp(p, ".git")) Err bitreich.org 70 i+ *p = '\0'; Err bitreich.org 70 i xmlencode(fp, stripped_name, strlen(stripped_name)); Err bitreich.org 70 i Err bitreich.org 70 i fputs("", fp); Err bitreich.org 70 .