diff options
author | Lars Hjemli | 2008-02-16 21:16:53 +0100 |
---|---|---|
committer | Lars Hjemli | 2008-02-16 21:48:19 +0100 |
commit | b88fb016d0209f7041ac7d3b4d2c077318407a4d (patch) | |
tree | 777e9cd042c3da9caaefe1f63363a52b56601521 /ui-shared.c | |
parent | d1f3bbe9d22029f45a77bb938c176ccc0c827d46 (diff) | |
download | cgit-b88fb016d0209f7041ac7d3b4d2c077318407a4d.tar.gz cgit-b88fb016d0209f7041ac7d3b4d2c077318407a4d.tar.bz2 cgit-b88fb016d0209f7041ac7d3b4d2c077318407a4d.zip |
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>
Diffstat (limited to 'ui-shared.c')
-rw-r--r-- | ui-shared.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c index b9f487a..cc1ab8b 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -476,7 +476,7 @@ void cgit_print_pageheader(char *title, int show_search) | |||
476 | htmlf("'><img src='%s' alt='cgit'/></a>\n", | 476 | htmlf("'><img src='%s' alt='cgit'/></a>\n", |
477 | ctx.cfg.logo); | 477 | ctx.cfg.logo); |
478 | html("</td></tr>\n<tr><td class='sidebar'>\n"); | 478 | html("</td></tr>\n<tr><td class='sidebar'>\n"); |
479 | if (ctx.qry.repo) { | 479 | if (ctx.repo) { |
480 | html("<h1 class='first'>"); | 480 | html("<h1 class='first'>"); |
481 | html_txt(strrpart(ctx.repo->name, 20)); | 481 | html_txt(strrpart(ctx.repo->name, 20)); |
482 | html("</h1>\n"); | 482 | html("</h1>\n"); |