Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GitHooks is not triggered in WebStorm #1560

Open
AlexInCube opened this issue Feb 14, 2025 · 2 comments
Open

GitHooks is not triggered in WebStorm #1560

AlexInCube opened this issue Feb 14, 2025 · 2 comments

Comments

@AlexInCube
Copy link

When i try to commit changes via WebStorm GUI, husky is not executed. I think Husky configured correctly, because its works in "git bash" terminal using "git commit" command. In WebStorm i turn on check box "Run Git Hooks"

I have Node.js v23.8.0, Husky v9.1.7, Webstorm 2024.3.1

My .husky/pre-commit:

npx lint-staged
npm run test
@hichemfantar
Copy link

you have to set executable permissions on the file via chmod +x .husky/pre-commit

@AlexInCube
Copy link
Author

AlexInCube commented Feb 21, 2025

I forgot to say that I'm using Windows, not Linux. I also fixed the problem by re-selecting the same path to git.exe in WebStorm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants