]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-tree.c
git: update to v2.19.1
[cgit.git] / ui-tree.c
index e6b3074faa964e7051674bdf75adcf7dfe85c262..df8ad82ca4914a5b469986545f1543bf1480f511 100644 (file)
--- a/ui-tree.c
+++ b/ui-tree.c
@@ -177,7 +177,7 @@ static void write_tree_link(const struct object_id *oid, char *name,
                cgit_tree_link(name, NULL, "ls-dir", ctx.qry.head, rev,
                               fullpath->buf);
 
-               tree = lookup_tree(&tree_ctx.oid);
+               tree = lookup_tree(the_repository, &tree_ctx.oid);
                if (!tree)
                        return;
 
@@ -359,7 +359,7 @@ void cgit_print_tree(const char *rev, char *path)
                        "Invalid revision name: %s", rev);
                return;
        }
-       commit = lookup_commit_reference(&oid);
+       commit = lookup_commit_reference(the_repository, &oid);
        if (!commit || parse_commit(commit)) {
                cgit_print_error_page(404, "Not found",
                        "Invalid commit reference: %s", rev);