Skip to content

Commit 397e7f0

Browse files
authored
fixes #1494 support pre-merge-commit hook
1 parent fc549e0 commit 397e7f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import c from 'child_process'
22
import f, { readdir, writeFileSync as w } from 'fs'
33
import p from 'path'
44

5-
let l = [ 'pre-commit', 'prepare-commit-msg', 'commit-msg', 'post-commit', 'applypatch-msg', 'pre-applypatch', 'post-applypatch', 'pre-rebase', 'post-rewrite', 'post-checkout', 'post-merge', 'pre-push', 'pre-auto-gc' ],
5+
let l = [ 'pre-commit', 'pre-merge-commit', 'prepare-commit-msg', 'commit-msg', 'post-commit', 'applypatch-msg', 'pre-applypatch', 'post-applypatch', 'pre-rebase', 'post-rewrite', 'post-checkout', 'post-merge', 'pre-push', 'pre-auto-gc' ],
66
msg = `echo "husky - DEPRECATED\n\nPlease remove the following two lines from $0:\n\n#!/usr/bin/env sh\n. \\"\\$(dirname -- \\"\\$0\\")/_/husky.sh\\"\n\nThey WILL FAIL in v10.0.0\n"`
77

88
export default (d = '.husky') => {
@@ -22,4 +22,4 @@ export default (d = '.husky') => {
2222
l.forEach(h => w(_(h), `#!/usr/bin/env sh\n. "\$(dirname "\$0")/h"`, { mode: 0o755 }))
2323
w(_('husky.sh'), msg)
2424
return ''
25-
}
25+
}

0 commit comments

Comments
 (0)