Comparing version 4.3.5 to 4.3.6
@@ -61,3 +61,3 @@ "use strict"; | ||
*/ | ||
async function run([, , hookName = '', HUSKY_GIT_PARAMS], { cwd = process.cwd() } = {}) { | ||
async function run([, , hookName = '', ...HUSKY_GIT_PARAMS], { cwd = process.cwd() } = {}) { | ||
const oldCommand = getOldCommand(cwd, hookName); | ||
@@ -67,4 +67,4 @@ const command = getCommand(cwd, hookName); | ||
const env = {}; | ||
if (HUSKY_GIT_PARAMS) { | ||
env.HUSKY_GIT_PARAMS = HUSKY_GIT_PARAMS; | ||
if (HUSKY_GIT_PARAMS === null || HUSKY_GIT_PARAMS === void 0 ? void 0 : HUSKY_GIT_PARAMS.length) { | ||
env.HUSKY_GIT_PARAMS = HUSKY_GIT_PARAMS.join(' '); | ||
} | ||
@@ -71,0 +71,0 @@ if (command) { |
{ | ||
"name": "husky", | ||
"version": "4.3.5", | ||
"version": "4.3.6", | ||
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -11,9 +11,4 @@ # Husky | ||
**Note for npm v7 users** Currently `INIT_CWD` environment variable is missing in npm v7 and is required for Husky v4 to auto-install (https://github.com/npm/cli/issues/2033). To manually install husky v4, run | ||
```shell | ||
INIT_CWD="$(pwd)" npm install husky --save-dev | ||
``` | ||
**Note to npm v7 users**: if hooks aren't being installed with npm `v7`, check that your version is at least `v7.1.2`. | ||
Or upgrade to [husky v5](https://typicode.github.io/husky/#/). | ||
## Install | ||
@@ -20,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53469
25
361