From 9c4cad5c0f9e5b0f44c03f83d2359cedef5d08e2 Mon Sep 17 00:00:00 2001 From: typicode Date: Sun, 10 Oct 2021 16:23:38 +0200 Subject: [PATCH] docs: update "hooks not running" section --- docs/README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/README.md b/docs/README.md index 62f1bc4c8..5ab2c018a 100644 --- a/docs/README.md +++ b/docs/README.md @@ -368,11 +368,10 @@ export NVM_DIR="$HOME/.nvm" ## Hooks not running -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. - -Verify hooks permissions, they should be executable. This is automatically set when using `husky add` command but you can run `chmod +x .husky/` to fix that. - -Check that your version of Git is greater than `2.9`. +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. +1. Check that `git config core.hooksPath` returns `.husky` (or your custom hooks directory). +1. Verify that hook files are executable. This is automatically set when using `husky add` command but you can run `chmod +x .husky/` to fix that. +1. Check that your version of Git is greater than `2.9`. ## Yarn on Windows