We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d63deca commit 9cb52b4Copy full SHA for 9cb52b4
1 file changed
install.js
@@ -20,18 +20,6 @@ var git = path.resolve(root, '.git')
20
, hooks = path.resolve(git, 'hooks')
21
, precommit = path.resolve(hooks, 'pre-commit');
22
23
-//
24
-// Make sure that we can execute the hook without any issues before continuing.
25
26
-if (spawn.sync('sh', [hook, '--dry-run'], { stdio: 'ignore' }).code !== 0) {
27
- console.error('pre-commit:');
28
- console.error('pre-commit: The --dry-run of the pre-commit hook failed to execute.');
29
30
- console.error('pre-commit: The hook was not installed.');
31
32
- return;
33
-}
34
-
35
//
36
// Bail out if we don't have an `.git` directory as the hooks will not get
37
// triggered. If we do have directory create a hooks folder if it doesn't exist.
0 commit comments