diff options
author | Lars Hjemli | 2009-12-08 18:31:07 +0100 |
---|---|---|
committer | Lars Hjemli | 2009-12-08 18:31:07 +0100 |
commit | 57bb4fdb8419d7c250d4c6146910df3263943951 (patch) | |
tree | 3597910405ffaebeff892788b1726d707439a8cb /cgit.c | |
parent | 5c34d96f7e000eb47418ac9e39dabf92b767c9f2 (diff) | |
parent | ef07ccc72da0270e9298c36046a0187dc359b0da (diff) | |
download | cgit-57bb4fdb8419d7c250d4c6146910df3263943951.tar.gz cgit-57bb4fdb8419d7c250d4c6146910df3263943951.tar.bz2 cgit-57bb4fdb8419d7c250d4c6146910df3263943951.zip |
Merge branch 'master' of http://op-co.de/cgit
Diffstat (limited to 'cgit.c')
-rw-r--r-- | cgit.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -165,6 +165,8 @@ void config_cb(const char *name, const char *value) | |||
165 | ctx.cfg.max_msg_len = atoi(value); | 165 | ctx.cfg.max_msg_len = atoi(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); |
170 | else if (!strcmp(name, "max-commit-count")) | 172 | else if (!strcmp(name, "max-commit-count")) |
@@ -270,6 +272,7 @@ static void prepare_context(struct cgit_context *ctx) | |||
270 | ctx->cfg.max_lock_attempts = 5; | 272 | ctx->cfg.max_lock_attempts = 5; |
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"; |
275 | ctx->cfg.renamelimit = -1; | 278 | ctx->cfg.renamelimit = -1; |