Comparing version 4.0.2 to 4.0.3
@@ -11,4 +11,7 @@ "use strict"; | ||
// https://github.com/typicode/husky/issues/587 | ||
const result = child_process_1.default.spawnSync('git', ['rev-parse', '--show-prefix', '--git-common-dir'], { cwd }); | ||
const [prefix, gitCommonDir] = result.stdout | ||
const { status, stderr, stdout } = child_process_1.default.spawnSync('git', ['rev-parse', '--show-prefix', '--git-common-dir'], { cwd }); | ||
if (status !== 0) { | ||
throw new Error(stderr.toString()); | ||
} | ||
const [prefix, gitCommonDir] = stdout | ||
.toString() | ||
@@ -15,0 +18,0 @@ .split('\n') |
{ | ||
"name": "husky", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"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": { |
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
48751
643