all repos — cgit @ c679d9010451b986bae719a6abe0458af2b2dfb9

a hyperfast web frontend for git written in c

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>
Konstantin Ryabitsev konstantin@linuxfoundation.org
Tue, 17 Jul 2018 12:38:22 -0400
commit

c679d9010451b986bae719a6abe0458af2b2dfb9

parent

77b6f833441dda1dd50f5a51a81036b1fde815d5

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M cgit.ccgit.c

@@ -830,6 +830,8 @@ char *tmp = build_snapshot_setting(repo->snapshots);

fprintf(f, "repo.snapshots=%s\n", tmp ? 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) fprintf(f, "repo.max-stats=%s\n", cgit_find_stats_periodname(repo->max_stats));