]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
Improve initialization of git directory
[ps-cgit] / ui-shared.c
index b9f487a6c388c2e9634396c9bddd9ea42ec38de4..cc1ab8bb50a36cec0403fc1215d50e1d6128d5cd 100644 (file)
@@ -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");