summaryrefslogtreecommitdiff
path: root/ui-wiki.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui-wiki.c')
-rw-r--r--ui-wiki.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-wiki.c b/ui-wiki.c
index 9fdb4b9..9d52525 100644
--- a/ui-wiki.c
+++ b/ui-wiki.c
@@ -28,14 +28,14 @@ static void print_page(const struct object_id *oid, const char *path, const char
unsigned long size;
char *buf;
- type = oid_object_info(the_repository, oid, &size);
+ type = odb_read_object_info(the_repository->objects, oid, &size);
if (type == OBJ_BAD) {
cgit_print_error_page(404, "Not found",
"Bad object name: %s", oid_to_hex(oid));
return;
}
- buf = repo_read_object_file(the_repository, oid, &type, &size);
+ buf = odb_read_object(the_repository->objects, oid, &type, &size);
if (!buf) {
cgit_print_error_page(500, "Internal server error",
"Error reading object %s", oid_to_hex(oid));