aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cgit.c6
-rw-r--r--cgitrc.5.txt3
2 files changed, 6 insertions, 3 deletions
diff --git a/cgit.c b/cgit.c
index 2de6d7f..133f454 100644
--- a/cgit.c
+++ b/cgit.c
@@ -237,9 +237,11 @@ static void config_cb(const char *name, const char *value)
237 ctx.cfg.max_repodesc_len = atoi(value); 237 ctx.cfg.max_repodesc_len = atoi(value);
238 else if (!strcmp(name, "max-blob-size")) 238 else if (!strcmp(name, "max-blob-size"))
239 ctx.cfg.max_blob_size = atoi(value); 239 ctx.cfg.max_blob_size = atoi(value);
240 else if (!strcmp(name, "max-repo-count")) 240 else if (!strcmp(name, "max-repo-count")) {
241 ctx.cfg.max_repo_count = atoi(value); 241 ctx.cfg.max_repo_count = atoi(value);
242 else if (!strcmp(name, "max-commit-count")) 242 if (ctx.cfg.max_repo_count <= 0)
243 ctx.cfg.max_repo_count = INT_MAX;
244 } else if (!strcmp(name, "max-commit-count"))
243 ctx.cfg.max_commit_count = atoi(value); 245 ctx.cfg.max_commit_count = atoi(value);
244 else if (!strcmp(name, "project-list")) 246 else if (!strcmp(name, "project-list"))
245 ctx.cfg.project_list = xstrdup(expand_macros(value)); 247 ctx.cfg.project_list = xstrdup(expand_macros(value));
diff --git a/cgitrc.5.txt b/cgitrc.5.txt
index d9eb3b0..463d90c 100644
--- a/cgitrc.5.txt
+++ b/cgitrc.5.txt
@@ -269,7 +269,8 @@ max-message-length::
269 269
270max-repo-count:: 270max-repo-count::
271 Specifies the number of entries to list per page on the repository 271 Specifies the number of entries to list per page on the repository
272 index page. Default value: "50". 272 index page. The value "0" shows all repositories without limitation.
273 Default value: "50".
273 274
274max-repodesc-length:: 275max-repodesc-length::
275 Specifies the maximum number of repo description characters to display 276 Specifies the maximum number of repo description characters to display