about summary refs log tree commit diff
path: root/third_party/cgit/ui-commit.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/cgit/ui-commit.c')
-rw-r--r--third_party/cgit/ui-commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/cgit/ui-commit.c b/third_party/cgit/ui-commit.c
index 72cb98b72a3f..6517e50cc6d3 100644
--- a/third_party/cgit/ui-commit.c
+++ b/third_party/cgit/ui-commit.c
@@ -26,7 +26,7 @@ void cgit_print_commit(char *hex, const char *prefix)
 	if (!hex)
 		hex = ctx.qry.head;
 
-	if (get_oid(hex, &oid)) {
+	if (repo_get_oid(the_repository, hex, &oid)) {
 		cgit_print_error_page(400, "Bad request",
 				"Bad object id: %s", hex);
 		return;