mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 08:28:42 +00:00
cgit: remember to set up env vars before empty clone path
This commit is contained in:
parent
8eef4589d0
commit
f3ab1f178f
1
cgit.c
1
cgit.c
@ -599,6 +599,7 @@ static int prepare_repo_cmd(void)
|
|||||||
cgit_print_error("Repository seems to be empty");
|
cgit_print_error("Repository seems to be empty");
|
||||||
if (!strcmp(ctx.qry.page, "summary")) {
|
if (!strcmp(ctx.qry.page, "summary")) {
|
||||||
html("<table class='list'><tr class='nohover'><td> </td></tr><tr class='nohover'><th class='left'>Clone</th></tr>\n");
|
html("<table class='list'><tr class='nohover'><td> </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);
|
cgit_add_clone_urls(print_no_repo_clone_urls);
|
||||||
html("</table>\n");
|
html("</table>\n");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user