mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 08:28:42 +00:00
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>
This commit is contained in:
parent
77b6f83344
commit
c679d90104
2
cgit.c
2
cgit.c
@ -830,6 +830,8 @@ static void print_repo(FILE *f, struct cgit_repo *repo)
|
|||||||
fprintf(f, "repo.snapshots=%s\n", tmp ? tmp : "");
|
fprintf(f, "repo.snapshots=%s\n", tmp ? tmp : "");
|
||||||
free(tmp);
|
free(tmp);
|
||||||
}
|
}
|
||||||
|
if (repo->snapshot_prefix)
|
||||||
|
fprintf(f, "repo.snapshot-prefix=%s\n", repo->snapshot_prefix);
|
||||||
if (repo->max_stats != ctx.cfg.max_stats)
|
if (repo->max_stats != ctx.cfg.max_stats)
|
||||||
fprintf(f, "repo.max-stats=%s\n",
|
fprintf(f, "repo.max-stats=%s\n",
|
||||||
cgit_find_stats_periodname(repo->max_stats));
|
cgit_find_stats_periodname(repo->max_stats));
|
||||||
|
Loading…
Reference in New Issue
Block a user