Unidiff1 files changed, 3 insertions, 0 deletions
|
diff --git a/cgit.c b/cgit.c index a17f40d..e1d38c2 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -166,4 +166,6 @@ void config_cb(const char *name, const char *value) |
166 | else if (!strcmp(name, "max-repodesc-length")) |
166 | else if (!strcmp(name, "max-repodesc-length")) |
167 | ctx.cfg.max_repodesc_len = atoi(value); |
167 | ctx.cfg.max_repodesc_len = atoi(value); |
| |
168 | else if (!strcmp(name, "max-blob-size")) |
| |
169 | ctx.cfg.max_blob_size = atoi(value); |
168 | else if (!strcmp(name, "max-repo-count")) |
170 | else if (!strcmp(name, "max-repo-count")) |
169 | ctx.cfg.max_repo_count = atoi(value); |
171 | ctx.cfg.max_repo_count = atoi(value); |
@@ -271,4 +273,5 @@ static void prepare_context(struct cgit_context *ctx) |
271 | ctx->cfg.max_msg_len = 80; |
273 | ctx->cfg.max_msg_len = 80; |
272 | ctx->cfg.max_repodesc_len = 80; |
274 | ctx->cfg.max_repodesc_len = 80; |
| |
275 | ctx->cfg.max_blob_size = 0; |
273 | ctx->cfg.max_stats = 0; |
276 | ctx->cfg.max_stats = 0; |
274 | ctx->cfg.module_link = "./?repo=%s&page=commit&id=%s"; |
277 | ctx->cfg.module_link = "./?repo=%s&page=commit&id=%s"; |
|