We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50ea409 commit 56b9306Copy full SHA for 56b9306
src/index.ts
@@ -11,7 +11,7 @@ const git = (args: string[]): cp.SpawnSyncReturns<Buffer> =>
11
12
export function install(dir = '.husky'): void {
13
// Ensure that we're inside a git repository
14
- if (git(['rev-parse']).status) {
+ if (git(['rev-parse']).status !== 0) {
15
return
16
}
17
0 commit comments