Git hooks on mirror repo not working

Hello,

I tried to configure a git hook for a mirrored repo but It seems it never gets triggered on mirroring/sync action.

I added several test scripts in some of the git hooks ( pre-receive, update, post-receive).
The things I tried inside the scripts
1: create a test folder (with mkdir)
2: create a new branch
3: exit 1 (which should block the process if set on pre-receive git hook).

All of these worked just fine when I pushed into a repo (so I would say the actual script content is not the issue) but nothing worked on the mirrored repo.

Iā€™m using Gitea on Docker Version: 1.21.0 (with MySql).

Any ideas? Does GITEA support git hooks on mirror/sync?

Thank you

1 Like