diff options
Diffstat (limited to 'ui-tree.c')
| -rw-r--r-- | ui-tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -177,7 +177,7 @@ static void write_tree_link(const struct object_id *oid, char *name, | |||
| 177 | cgit_tree_link(name, NULL, "ls-dir", ctx.qry.head, rev, | 177 | cgit_tree_link(name, NULL, "ls-dir", ctx.qry.head, rev, |
| 178 | fullpath->buf); | 178 | fullpath->buf); |
| 179 | 179 | ||
| 180 | tree = lookup_tree(&tree_ctx.oid); | 180 | tree = lookup_tree(the_repository, &tree_ctx.oid); |
| 181 | if (!tree) | 181 | if (!tree) |
| 182 | return; | 182 | return; |
| 183 | 183 | ||
| @@ -359,7 +359,7 @@ void cgit_print_tree(const char *rev, char *path) | |||
| 359 | "Invalid revision name: %s", rev); | 359 | "Invalid revision name: %s", rev); |
| 360 | return; | 360 | return; |
| 361 | } | 361 | } |
| 362 | commit = lookup_commit_reference(&oid); | 362 | commit = lookup_commit_reference(the_repository, &oid); |
| 363 | if (!commit || parse_commit(commit)) { | 363 | if (!commit || parse_commit(commit)) { |
| 364 | cgit_print_error_page(404, "Not found", | 364 | cgit_print_error_page(404, "Not found", |
| 365 | "Invalid commit reference: %s", rev); | 365 | "Invalid commit reference: %s", rev); |
