File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments