X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/a420c7ce9b2c483c2f93b8a1a03cc80f3eeedb20..7ef1a47991fee31c1eb1e1292bf715d577042f35:/cgit.c diff --git a/cgit.c b/cgit.c index 7271412..5937b9e 100644 --- a/cgit.c +++ b/cgit.c @@ -110,7 +110,7 @@ static void config_cb(const char *name, const char *value) ctx.repo->path = trim_end(value, '/'); else if (ctx.repo && starts_with(name, "repo.")) repo_config(ctx.repo, name + 5, value); - else if (!strcmp(name, "readme") && value != NULL) + else if (!strcmp(name, "readme")) string_list_append(&ctx.cfg.readme, xstrdup(value)); else if (!strcmp(name, "root-title")) ctx.cfg.root_title = xstrdup(value); @@ -733,9 +733,6 @@ static void process_request(void) if (ctx.repo && prepare_repo_cmd()) return; - if (cmd->pre) - cmd->pre(); - cmd->fn(); }