aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cgit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index ed02614..baad1c8 100644
--- a/cgit.c
+++ b/cgit.c
@@ -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();