diff options
Diffstat (limited to 'cgit.c')
-rw-r--r-- | cgit.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -65,6 +65,9 @@ static void cgit_print_repo_page(struct cacheitem *item) | |||
65 | char *title; | 65 | char *title; |
66 | int show_search; | 66 | int show_search; |
67 | 67 | ||
68 | if (!cgit_query_head) | ||
69 | cgit_query_head = cgit_repo->defbranch; | ||
70 | |||
68 | if (chdir(cgit_repo->path)) { | 71 | if (chdir(cgit_repo->path)) { |
69 | title = fmt("%s - %s", cgit_root_title, "Bad request"); | 72 | title = fmt("%s - %s", cgit_root_title, "Bad request"); |
70 | cgit_print_docstart(title, item); | 73 | cgit_print_docstart(title, item); |