Webstorm Run git hooks option disappeared

The option to run git hooks when pushing to the repo has disappeared. How do I reenable it? Webstorm version 2020.3.1

 

5 comments
Comment actions Permalink

Please share the listing of the .git/hooks folder from the repo. The checkbox is shown only when there are executable pre-commit or commit-msg hooks in the folder.

0
Comment actions Permalink

What if I use latest version of husky and hook executable is located under `.husky` folder?

0
Comment actions Permalink

Same here. And I do have runnable hooks in .git/hooks folder. But the checkbox is still not activated.

ubuntu@DESKTOP-AOBR712:~/code/monorepo-template$ ls .git/hooks
applypatch-msg husky.local.sh post-applypatch post-commit post-rewrite pre-applypatch pre-commit pre-push prepare-commit-msg sendemail-validate
commit-msg husky.sh post-checkout post-merge post-update pre-auto-gc pre-merge-commit pre-rebase push-to-checkout

 

0
Comment actions Permalink

Same here, hooks are in .husky folder, no run git hooks checkbox.

Please react to this issue

0
Comment actions Permalink

I ran into the same issue. The solution for me was to verify execute permissions on the hook files. When changed, the option you are looking for is enabled.

 

0

Please sign in to leave a comment.