diff options
author | Konstantin Ryabitsev | 2018-07-17 12:38:22 -0400 |
---|---|---|
committer | Jason A. Donenfeld | 2018-08-03 16:12:21 +0200 |
commit | c679d9010451b986bae719a6abe0458af2b2dfb9 (patch) | |
tree | ec984ae75e1408c5f9a436b33b5cbfcec27f6851 | |
parent | 77b6f833441dda1dd50f5a51a81036b1fde815d5 (diff) | |
download | cgit-c679d9010451b986bae719a6abe0458af2b2dfb9.tar.gz cgit-c679d9010451b986bae719a6abe0458af2b2dfb9.tar.bz2 cgit-c679d9010451b986bae719a6abe0458af2b2dfb9.zip |
config: record repo.snapshot-prefix in the per-repo config
Even if we find snapshot-prefix in the repo configuration, we are not
writing it out into the rc- file, so setting the value does not have any
effect.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rw-r--r-- | cgit.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -830,6 +830,8 @@ static void print_repo(FILE *f, struct cgit_repo *repo) | |||
830 | fprintf(f, "repo.snapshots=%s\n", tmp ? tmp : ""); | 830 | fprintf(f, "repo.snapshots=%s\n", tmp ? tmp : ""); |
831 | free(tmp); | 831 | free(tmp); |
832 | } | 832 | } |
833 | if (repo->snapshot_prefix) | ||
834 | fprintf(f, "repo.snapshot-prefix=%s\n", repo->snapshot_prefix); | ||
833 | if (repo->max_stats != ctx.cfg.max_stats) | 835 | if (repo->max_stats != ctx.cfg.max_stats) |
834 | fprintf(f, "repo.max-stats=%s\n", | 836 | fprintf(f, "repo.max-stats=%s\n", |
835 | cgit_find_stats_periodname(repo->max_stats)); | 837 | cgit_find_stats_periodname(repo->max_stats)); |