X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/dc41a0018058c81ee9a0a2dc6e89f737d7c1c966..2d386e227e0b75474efcfe82e9fec7d0f21c6df4:/cgit.c?ds=inline diff --git a/cgit.c b/cgit.c index 8c9cfb5..baad1c8 100644 --- a/cgit.c +++ b/cgit.c @@ -421,7 +421,7 @@ struct refmatch { int match; }; -static int find_current_ref(const char *refname, const unsigned char *sha1, +static int find_current_ref(const char *refname, const struct object_id *oid, int flags, void *cb_data) { struct refmatch *info; @@ -742,6 +742,9 @@ static void process_request(void) if (ctx.repo && prepare_repo_cmd()) return; + if (cmd->pre) + cmd->pre(); + if (cmd->want_layout) { cgit_print_http_headers(); cgit_print_docstart();