]> gitweb.ps.run Git - ps-cgit/blobdiff - scan-tree.c
ui-shared: redirect should not exit early for cache
[ps-cgit] / scan-tree.c
index 8e3cf52b348f2df6436246103e7c2280926c2c99..2e87999b11b8f10fdbeab0c9b2b20e22b7b46184 100644 (file)
@@ -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);
 }