mirror of
https://git.zx2c4.com/cgit
synced 2025-07-21 19:34:22 +02:00
Improve initialization of git directory
Using the functions offered by libgit feels like the right thing to do. Also, make sure that config errors gets properly reported. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
d1f3bbe9d2
commit
b88fb016d0
2 changed files with 9 additions and 10 deletions
|
@ -476,7 +476,7 @@ void cgit_print_pageheader(char *title, int show_search)
|
|||
htmlf("'><img src='%s' alt='cgit'/></a>\n",
|
||||
ctx.cfg.logo);
|
||||
html("</td></tr>\n<tr><td class='sidebar'>\n");
|
||||
if (ctx.qry.repo) {
|
||||
if (ctx.repo) {
|
||||
html("<h1 class='first'>");
|
||||
html_txt(strrpart(ctx.repo->name, 20));
|
||||
html("</h1>\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue