Skip to content

Commit 9cb52b4

Browse files
committed
[fix] Remove the dry run. Fixes #42
1 parent d63deca commit 9cb52b4

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

install.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,6 @@ var git = path.resolve(root, '.git')
2020
, hooks = path.resolve(git, 'hooks')
2121
, precommit = path.resolve(hooks, 'pre-commit');
2222

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-
console.error('pre-commit:');
30-
console.error('pre-commit: The hook was not installed.');
31-
console.error('pre-commit:');
32-
return;
33-
}
34-
3523
//
3624
// Bail out if we don't have an `.git` directory as the hooks will not get
3725
// triggered. If we do have directory create a hooks folder if it doesn't exist.

0 commit comments

Comments
 (0)