husky
Advanced tools
Comparing version 4.1.0 to 4.2.0
@@ -15,2 +15,3 @@ "use strict"; | ||
const gitRevParse_1 = require("./gitRevParse"); | ||
const checkGitVersion_1 = require("./checkGitVersion"); | ||
// Skip install if HUSKY_SKIP_INSTALL is true | ||
@@ -58,4 +59,6 @@ function checkSkipInstallEnv() { | ||
debug_1.debug(`Current working directory is ${process.cwd()}`); | ||
if (action === 'install') | ||
if (action === 'install') { | ||
checkSkipInstallEnv(); | ||
checkGitVersion_1.checkGitVersion(); | ||
} | ||
const INIT_CWD = getInitCwdEnv(); | ||
@@ -62,0 +65,0 @@ const userPkgDir = getUserPkgDir(INIT_CWD); |
@@ -21,12 +21,4 @@ "use strict"; | ||
.map(slash_1.default); | ||
// Git rev-parse returns unknown options as is. | ||
// If we get --absolute-git-dir in the output, | ||
// it probably means that an old version of Git has been used. | ||
// There seem to be a bug with --git-common-dir that was fixed in 2.13.0. | ||
// See issues above. | ||
if (gitCommonDir === '--git-common-dir') { | ||
throw new Error('Husky requires Git >= 2.13.0, please upgrade Git'); | ||
} | ||
return { prefix, gitCommonDir }; | ||
} | ||
exports.gitRevParse = gitRevParse; |
{ | ||
"name": "husky", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "Prevents bad commit or push (git hooks, pre-commit/precommit, pre-push/prepush, post-merge/postmerge and all that stuff...)", | ||
@@ -54,3 +54,5 @@ "bin": { | ||
"ci-info": "^2.0.0", | ||
"compare-versions": "^3.5.1", | ||
"cosmiconfig": "^6.0.0", | ||
"find-versions": "^3.2.0", | ||
"opencollective-postinstall": "^2.0.2", | ||
@@ -57,0 +59,0 @@ "pkg-dir": "^4.2.0", |
Sorry, the diff of this file is not supported yet
49997
24
606
10
3
+ Addedcompare-versions@^3.5.1
+ Addedfind-versions@^3.2.0
+ Addedcompare-versions@3.6.0(transitive)
+ Addedfind-versions@3.2.0(transitive)
+ Addedsemver-regex@2.0.0(transitive)