Diffstat (limited to 'cgit.c')
| -rw-r--r-- | cgit.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -486,10 +486,8 @@ static int prepare_repo_cmd(struct cgit_context *ctx) init_display_notes(NULL); /* We restore the unset variables afterward. */ - if (user_home) - setenv("HOME", user_home, 1); - if (xdg_home) - setenv("XDG_CONFIG_HOME", xdg_home, 1); + setenv("HOME", user_home, 1); + setenv("XDG_CONFIG_HOME", xdg_home, 1); if (nongit) { const char *name = ctx->repo->name; |