cgit: remember to set up env vars before empty clone path

This commit is contained in:
Jason A. Donenfeld 2015-03-08 13:08:04 +01:00
parent 8eef4589d0
commit f3ab1f178f

1
cgit.c
View File

@ -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("<table class='list'><tr class='nohover'><td>&nbsp;</td></tr><tr class='nohover'><th class='left'>Clone</th></tr>\n");
cgit_prepare_repo_env(ctx.repo);
cgit_add_clone_urls(print_no_repo_clone_urls);
html("</table>\n");
}