Diffstat (limited to 'scan-tree.c')
| -rw-r--r-- | scan-tree.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/scan-tree.c b/scan-tree.c index 08f3f1d..1cb4e5d 100644 --- a/scan-tree.c +++ b/scan-tree.c @@ -55,8 +55,6 @@ static void repo_config(const char *name, const char *value) static int gitconfig_config(const char *key, const char *value, void *cb) { - const char *name; - if (!strcmp(key, "gitweb.owner")) config_fn(repo, "owner", value); else if (!strcmp(key, "gitweb.description")) @@ -65,8 +63,8 @@ static int gitconfig_config(const char *key, const char *value, void *cb) config_fn(repo, "section", value); else if (!strcmp(key, "gitweb.homepage")) config_fn(repo, "homepage", value); - else if (skip_prefix(key, "cgit.", &name)) - config_fn(repo, name, value); + else if (starts_with(key, "cgit.")) + config_fn(repo, key + 5, value); return 0; } |