X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/812cd49e3144946bbe604064abb1a442daa1eb9e..e9cbdf64632fbe64d6b0c4974ac947ef954938e7:/scan-tree.c?ds=sidebyside diff --git a/scan-tree.c b/scan-tree.c index 8e3cf52..2e87999 100644 --- a/scan-tree.c +++ b/scan-tree.c @@ -61,6 +61,8 @@ static int gitconfig_config(const char *key, const char *value, void *cb) config_fn(repo, "desc", value); else if (!strcmp(key, "gitweb.category")) config_fn(repo, "section", value); + else if (!strcmp(key, "gitweb.homepage")) + config_fn(repo, "homepage", value); else if (starts_with(key, "cgit.")) config_fn(repo, key + 5, value); @@ -174,7 +176,7 @@ static void add_repo(const char *base, struct strbuf *path, repo_config_fn fn) strbuf_addstr(path, "cgitrc"); if (!stat(path->buf, &st)) - parse_configfile(xstrdup(path->buf), &repo_config); + parse_configfile(path->buf, &repo_config); strbuf_release(&rel); }