about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--scan-tree.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/scan-tree.c b/scan-tree.c index 87fa0c7..044bcdc 100644 --- a/scan-tree.c +++ b/scan-tree.c
@@ -115,7 +115,6 @@ static void add_repo(const char *base, struct strbuf *path, repo_config_fn fn)
115 else if (rel.len && rel.buf[rel.len - 1] == '/') 115 else if (rel.len && rel.buf[rel.len - 1] == '/')
116 strbuf_setlen(&rel, rel.len - 1); 116 strbuf_setlen(&rel, rel.len - 1);
117 117
118 fprintf(stderr, "add_repo(): %s\n", rel.buf);
119 repo = cgit_add_repo(rel.buf); 118 repo = cgit_add_repo(rel.buf);
120 config_fn = fn; 119 config_fn = fn;
121 if (ctx.cfg.enable_git_config) { 120 if (ctx.cfg.enable_git_config) {
@@ -162,7 +161,6 @@ static void add_repo(const char *base, struct strbuf *path, repo_config_fn fn)
162 *slash = '\0'; 161 *slash = '\0';
163 repo->section = xstrdup(rel.buf); 162 repo->section = xstrdup(rel.buf);
164 *slash = '/'; 163 *slash = '/';
165 fprintf(stderr, "repo->name %s, repo->section %s\n", repo->name, repo->section);
166 if (starts_with(repo->name, repo->section)) { 164 if (starts_with(repo->name, repo->section)) {
167 repo->name += strlen(repo->section); 165 repo->name += strlen(repo->section);
168 if (*repo->name == '/') 166 if (*repo->name == '/')
@@ -186,7 +184,6 @@ static void scan_path(const char *base, const char *path, repo_config_fn fn)
186 size_t pathlen = strlen(path); 184 size_t pathlen = strlen(path);
187 struct stat st; 185 struct stat st;
188 186
189 fprintf(stderr, "scan_path(): %s\n", path);
190 if (!dir) { 187 if (!dir) {
191 fprintf(stderr, "Error opening directory %s: %s (%d)\n", 188 fprintf(stderr, "Error opening directory %s: %s (%d)\n",
192 path, strerror(errno), errno); 189 path, strerror(errno), errno);
@@ -195,7 +192,6 @@ static void scan_path(const char *base, const char *path, repo_config_fn fn)
195 192
196 strbuf_add(&pathbuf, path, strlen(path)); 193 strbuf_add(&pathbuf, path, strlen(path));
197 if (is_git_dir(pathbuf.buf)) { 194 if (is_git_dir(pathbuf.buf)) {
198 fprintf(stderr, "scan_path() is_git_dir: %s\n", path);
199 add_repo(base, &pathbuf, fn); 195 add_repo(base, &pathbuf, fn);
200 goto end; 196 goto end;
201 } 197 }