-rw-r--r-- | cgit.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -67,2 +67,4 @@ void config_cb(const char *name, const char *value) ctx.cfg.max_repodesc_len = atoi(value); + else if (!strcmp(name, "max-repo-count")) + ctx.cfg.max_repo_count = atoi(value); else if (!strcmp(name, "max-commit-count")) @@ -161,2 +163,3 @@ static void prepare_context(struct cgit_context *ctx) ctx->cfg.logo = "/git-logo.png"; + ctx->cfg.max_repo_count = 50; ctx->cfg.max_commit_count = 50; |