X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/aee39b4e9a45e1ba507c0017de50bb9dbbae7af8..8905003cba637e5b18069e625cd4f4c05ac30251:/cgit.c diff --git a/cgit.c b/cgit.c index 57d7097..e616292 100644 --- a/cgit.c +++ b/cgit.c @@ -631,7 +631,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",