X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/bd24832cd7a72117afb7fa785f4e6bfa4324bf30..121e65391446069a538ae8d3f7938452178de7c6:/cgit.c?ds=sidebyside diff --git a/cgit.c b/cgit.c index 0ad8171..ae413c6 100644 --- a/cgit.c +++ b/cgit.c @@ -599,6 +599,7 @@ static int prepare_repo_cmd(void) cgit_print_error("Repository seems to be empty"); if (!strcmp(ctx.qry.page, "summary")) { html("\n"); + cgit_prepare_repo_env(ctx.repo); cgit_add_clone_urls(print_no_repo_clone_urls); html("
 
Clone
\n"); } @@ -1013,7 +1014,7 @@ static void cgit_parse_args(int argc, const char **argv) } } -static int calc_ttl() +static int calc_ttl(void) { if (!ctx.repo) return ctx.cfg.cache_root_ttl;