In my case, Git did not use the .githooks directory. If you run
git config --get core.hooksPath
it should print .githooks (or the custom name of your Hooks directory). Otherwise, set it via
git config core.hooksPath .githooks
and restart your IDE.