|
diff --git a/cgit.c b/cgit.c index f49fffa..497337b 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -174,32 +174,33 @@ static void prepare_context(struct cgit_context *ctx) |
174 | ctx->cfg.max_commit_count = 50; |
174 | ctx->cfg.max_commit_count = 50; |
175 | ctx->cfg.max_lock_attempts = 5; |
175 | ctx->cfg.max_lock_attempts = 5; |
176 | ctx->cfg.max_msg_len = 80; |
176 | ctx->cfg.max_msg_len = 80; |
177 | ctx->cfg.max_repodesc_len = 80; |
177 | ctx->cfg.max_repodesc_len = 80; |
178 | ctx->cfg.module_link = "./?repo=%s&page=commit&id=%s"; |
178 | ctx->cfg.module_link = "./?repo=%s&page=commit&id=%s"; |
179 | ctx->cfg.renamelimit = -1; |
179 | ctx->cfg.renamelimit = -1; |
180 | ctx->cfg.robots = "index, nofollow"; |
180 | ctx->cfg.robots = "index, nofollow"; |
181 | ctx->cfg.root_title = "Git repository browser"; |
181 | ctx->cfg.root_title = "Git repository browser"; |
182 | ctx->cfg.root_desc = "a fast webinterface for the git dscm"; |
182 | ctx->cfg.root_desc = "a fast webinterface for the git dscm"; |
183 | ctx->cfg.script_name = CGIT_SCRIPT_NAME; |
183 | ctx->cfg.script_name = CGIT_SCRIPT_NAME; |
184 | ctx->cfg.summary_branches = 10; |
184 | ctx->cfg.summary_branches = 10; |
185 | ctx->cfg.summary_log = 10; |
185 | ctx->cfg.summary_log = 10; |
186 | ctx->cfg.summary_tags = 10; |
186 | ctx->cfg.summary_tags = 10; |
187 | ctx->page.mimetype = "text/html"; |
187 | ctx->page.mimetype = "text/html"; |
188 | ctx->page.charset = PAGE_ENCODING; |
188 | ctx->page.charset = PAGE_ENCODING; |
189 | ctx->page.filename = NULL; |
189 | ctx->page.filename = NULL; |
| |
190 | ctx->page.size = 0; |
190 | ctx->page.modified = time(NULL); |
191 | ctx->page.modified = time(NULL); |
191 | ctx->page.expires = ctx->page.modified; |
192 | ctx->page.expires = ctx->page.modified; |
192 | } |
193 | } |
193 | |
194 | |
194 | struct refmatch { |
195 | struct refmatch { |
195 | char *req_ref; |
196 | char *req_ref; |
196 | char *first_ref; |
197 | char *first_ref; |
197 | int match; |
198 | int match; |
198 | }; |
199 | }; |
199 | |
200 | |
200 | int find_current_ref(const char *refname, const unsigned char *sha1, |
201 | int find_current_ref(const char *refname, const unsigned char *sha1, |
201 | int flags, void *cb_data) |
202 | int flags, void *cb_data) |
202 | { |
203 | { |
203 | struct refmatch *info; |
204 | struct refmatch *info; |
204 | |
205 | |
205 | info = (struct refmatch *)cb_data; |
206 | info = (struct refmatch *)cb_data; |
|