Skip to content

Commit 9c4cad5

Browse files
authored
docs: update "hooks not running" section
1 parent c86dde9 commit 9c4cad5

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

docs/README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -368,11 +368,10 @@ export NVM_DIR="$HOME/.nvm"
368368

369369
## Hooks not running
370370

371-
Ensure that you don't have a typo in your filename. For example, `precommit` or `pre-commit.sh` are invalid names. See Git hooks [documentation](https://git-scm.com/docs/githooks) for valid names.
372-
373-
Verify hooks permissions, they should be executable. This is automatically set when using `husky add` command but you can run `chmod +x .husky/<hookname>` to fix that.
374-
375-
Check that your version of Git is greater than `2.9`.
371+
1. Ensure that you don't have a typo in your filename. For example, `precommit` or `pre-commit.sh` are invalid names. See Git hooks [documentation](https://git-scm.com/docs/githooks) for valid names.
372+
1. Check that `git config core.hooksPath` returns `.husky` (or your custom hooks directory).
373+
1. Verify that hook files are executable. This is automatically set when using `husky add` command but you can run `chmod +x .husky/<hookname>` to fix that.
374+
1. Check that your version of Git is greater than `2.9`.
376375

377376
## Yarn on Windows
378377

0 commit comments

Comments
 (0)