Skip to content

Husky hooks are not executed #167

@Balastrong

Description

@Balastrong

I'm not sure if it's only me, but when I commit (with npm run commit, but also with a manual git commit) I get this 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`. hint: The '.husky/commit-msg' 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 two husky files are marked as changed so probably creating a PR with that should fix the issue for everyone. I can take care of that :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions