X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/0e6744b3082f576be21dd1b88f519a3c1f7d3931..a6da40bf84527cbe77d1ec504e1fefb982b9a52a:/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",