]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
config: record repo.snapshot-prefix in the per-repo config
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index fda0aa4b5ff87fa95690f95698406c661ba8f63f..6301b87c8ad3d29826e0fc585d6e494bcc9990bd 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -830,6 +830,8 @@ static void print_repo(FILE *f, struct cgit_repo *repo)
                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));