diff options
Diffstat (limited to 'shared.c')
-rw-r--r-- | shared.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8,7 +8,6 @@ | |||
8 | 8 | ||
9 | #include "cgit.h" | 9 | #include "cgit.h" |
10 | #include <stdio.h> | 10 | #include <stdio.h> |
11 | #include <linux/limits.h> | ||
12 | 11 | ||
13 | struct cgit_repolist cgit_repolist; | 12 | struct cgit_repolist cgit_repolist; |
14 | struct cgit_context ctx; | 13 | struct cgit_context ctx; |
@@ -70,6 +69,7 @@ struct cgit_repo *cgit_add_repo(const char *url) | |||
70 | ret->commit_filter = ctx.cfg.commit_filter; | 69 | ret->commit_filter = ctx.cfg.commit_filter; |
71 | ret->source_filter = ctx.cfg.source_filter; | 70 | ret->source_filter = ctx.cfg.source_filter; |
72 | ret->clone_url = ctx.cfg.clone_url; | 71 | ret->clone_url = ctx.cfg.clone_url; |
72 | ret->submodules.strdup_strings = 1; | ||
73 | return ret; | 73 | return ret; |
74 | } | 74 | } |
75 | 75 | ||
@@ -392,7 +392,7 @@ void cgit_prepare_repo_env(struct cgit_repo * repo) | |||
392 | p = env_vars; | 392 | p = env_vars; |
393 | q = p + env_var_count; | 393 | q = p + env_var_count; |
394 | for (; p < q; p++) | 394 | for (; p < q; p++) |
395 | if (setenv(p->name, p->value, 1)) | 395 | if (p->value && setenv(p->name, p->value, 1)) |
396 | fprintf(stderr, warn, p->name, p->value); | 396 | fprintf(stderr, warn, p->name, p->value); |
397 | } | 397 | } |
398 | 398 | ||