diff options
Diffstat (limited to 'scan-tree.c')
-rw-r--r-- | scan-tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scan-tree.c b/scan-tree.c index beb584b..a1ec8fb 100644 --- a/scan-tree.c +++ b/scan-tree.c | |||
@@ -113,6 +113,8 @@ static void add_repo(const char *base, struct strbuf *path, repo_config_fn fn) | |||
113 | 113 | ||
114 | if (!strcmp(rel.buf + rel.len - 5, "/.git")) | 114 | if (!strcmp(rel.buf + rel.len - 5, "/.git")) |
115 | strbuf_setlen(&rel, rel.len - 5); | 115 | strbuf_setlen(&rel, rel.len - 5); |
116 | else if (rel.len && rel.buf[rel.len - 1] == '/') | ||
117 | strbuf_setlen(&rel, rel.len - 1); | ||
116 | 118 | ||
117 | repo = cgit_add_repo(rel.buf); | 119 | repo = cgit_add_repo(rel.buf); |
118 | config_fn = fn; | 120 | config_fn = fn; |