mirror of
https://git.zx2c4.com/cgit
synced 2024-11-09 18:18:42 +00:00
remove debug fprinf() calls that sneaked in with commit 79c985
This commit is contained in:
parent
390ffad022
commit
4b91269bdb
@ -115,7 +115,6 @@ static void add_repo(const char *base, struct strbuf *path, repo_config_fn fn)
|
|||||||
else if (rel.len && rel.buf[rel.len - 1] == '/')
|
else if (rel.len && rel.buf[rel.len - 1] == '/')
|
||||||
strbuf_setlen(&rel, rel.len - 1);
|
strbuf_setlen(&rel, rel.len - 1);
|
||||||
|
|
||||||
fprintf(stderr, "add_repo(): %s\n", rel.buf);
|
|
||||||
repo = cgit_add_repo(rel.buf);
|
repo = cgit_add_repo(rel.buf);
|
||||||
config_fn = fn;
|
config_fn = fn;
|
||||||
if (ctx.cfg.enable_git_config) {
|
if (ctx.cfg.enable_git_config) {
|
||||||
@ -162,7 +161,6 @@ static void add_repo(const char *base, struct strbuf *path, repo_config_fn fn)
|
|||||||
*slash = '\0';
|
*slash = '\0';
|
||||||
repo->section = xstrdup(rel.buf);
|
repo->section = xstrdup(rel.buf);
|
||||||
*slash = '/';
|
*slash = '/';
|
||||||
fprintf(stderr, "repo->name %s, repo->section %s\n", repo->name, repo->section);
|
|
||||||
if (starts_with(repo->name, repo->section)) {
|
if (starts_with(repo->name, repo->section)) {
|
||||||
repo->name += strlen(repo->section);
|
repo->name += strlen(repo->section);
|
||||||
if (*repo->name == '/')
|
if (*repo->name == '/')
|
||||||
@ -186,7 +184,6 @@ static void scan_path(const char *base, const char *path, repo_config_fn fn)
|
|||||||
size_t pathlen = strlen(path);
|
size_t pathlen = strlen(path);
|
||||||
struct stat st;
|
struct stat st;
|
||||||
|
|
||||||
fprintf(stderr, "scan_path(): %s\n", path);
|
|
||||||
if (!dir) {
|
if (!dir) {
|
||||||
fprintf(stderr, "Error opening directory %s: %s (%d)\n",
|
fprintf(stderr, "Error opening directory %s: %s (%d)\n",
|
||||||
path, strerror(errno), errno);
|
path, strerror(errno), errno);
|
||||||
@ -195,7 +192,6 @@ static void scan_path(const char *base, const char *path, repo_config_fn fn)
|
|||||||
|
|
||||||
strbuf_add(&pathbuf, path, strlen(path));
|
strbuf_add(&pathbuf, path, strlen(path));
|
||||||
if (is_git_dir(pathbuf.buf)) {
|
if (is_git_dir(pathbuf.buf)) {
|
||||||
fprintf(stderr, "scan_path() is_git_dir: %s\n", path);
|
|
||||||
add_repo(base, &pathbuf, fn);
|
add_repo(base, &pathbuf, fn);
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user