diff options
Diffstat (limited to 'scan-tree.c')
| -rw-r--r-- | scan-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scan-tree.c b/scan-tree.c index 6ce8036..98a99c9 100644 --- a/scan-tree.c +++ b/scan-tree.c | |||
| @@ -106,7 +106,7 @@ static void add_repo(const char *base, const char *path, repo_config_fn fn) | |||
| 106 | config_fn = fn; | 106 | config_fn = fn; |
| 107 | if (ctx.cfg.enable_git_config) | 107 | if (ctx.cfg.enable_git_config) |
| 108 | git_config_from_file(gitconfig_config, fmt("%s/config", path), NULL); | 108 | git_config_from_file(gitconfig_config, fmt("%s/config", path), NULL); |
| 109 | 109 | ||
| 110 | if (ctx.cfg.remove_suffix) | 110 | if (ctx.cfg.remove_suffix) |
| 111 | if ((p = strrchr(repo->url, '.')) && !strcmp(p, ".git")) | 111 | if ((p = strrchr(repo->url, '.')) && !strcmp(p, ".git")) |
| 112 | *p = '\0'; | 112 | *p = '\0'; |
| @@ -222,7 +222,7 @@ void scan_projects(const char *path, const char *projectsfile, repo_config_fn fn | |||
| 222 | char line[MAX_PATH * 2], *z; | 222 | char line[MAX_PATH * 2], *z; |
| 223 | FILE *projects; | 223 | FILE *projects; |
| 224 | int err; | 224 | int err; |
| 225 | 225 | ||
| 226 | projects = fopen(projectsfile, "r"); | 226 | projects = fopen(projectsfile, "r"); |
| 227 | if (!projects) { | 227 | if (!projects) { |
| 228 | fprintf(stderr, "Error opening projectsfile %s: %s (%d)\n", | 228 | fprintf(stderr, "Error opening projectsfile %s: %s (%d)\n", |
