Avoid pre-receive hook execution on wiki events

Hello,

I have written a pre-receive hook that is launched for every push on every project on our self-managed server.

This hook is launched also on Wiki edition. I do not want that.

How can I do so that the pre-receive hook is not launched for wiki edition?

Regards

Wiki Git repositories follow a special naming convention, ending with .wiki.git Wiki | GitLab

You could add a conditional check in your pre-receive script which returns early, if the $GL_PROJECTS_PATH variable contains the wiki string.