X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/dc41a0018058c81ee9a0a2dc6e89f737d7c1c966..044e2d26da4f8b4f9ff25e4a729ab4e393073b5e:/cgit.c 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();