Skip to content

Husky hooks are not executed #4662

Closed
@Balastrong

Description

@Balastrong

I'm not sure if it's only me, but when I git commit I get these warnings on console and husky hooks are not executed:

hint: The '.husky/pre-commit' hook was ignored because it's not set as executable.
hint: You can disable this warning with `git config advice.ignoredHook false`.

According to the answers here a simple chmod ug+x .husky/* fixes the issue. I tested it locally and it worked.

Also, after running chmod the husky file is marked as changed so probably creating a PR with that should fix the issue for everyone. I can submit it in a PR if this makes sense :)

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions