about summary refs log tree commit diff
path: root/third_party/cgit/cgit.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/cgit/cgit.c')
-rw-r--r--third_party/cgit/cgit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/cgit/cgit.c b/third_party/cgit/cgit.c
index dd28a79315..40202ead67 100644
--- a/third_party/cgit/cgit.c
+++ b/third_party/cgit/cgit.c
@@ -628,7 +628,7 @@ static int prepare_repo_cmd(int nongit)
 		return 1;
 	}
 
-	if (get_oid(ctx.qry.head, &oid)) {
+	if (repo_get_oid(the_repository, ctx.qry.head, &oid)) {
 		char *old_head = ctx.qry.head;
 		ctx.qry.head = xstrdup(ctx.repo->defbranch);
 		cgit_print_error_page(404, "Not found",