Commit 745e0da4 authored by shangbj's avatar shangbj

1

parent 58e3cd33
...@@ -15,7 +15,7 @@ const path = require('path') ...@@ -15,7 +15,7 @@ const path = require('path')
// console.log('stdout',stdout) // console.log('stdout',stdout)
// console.log('stderr',stderr) // console.log('stderr',stderr)
// }) // })
console.log('______', process.env.GIT_PUSH_OPTION_COUNT, process.env.GIT_PUSH_OPTION_N)
// let stream = '' // let stream = ''
// if (process.platform === 'win32') { // if (process.platform === 'win32') {
// // husky不支持配置.git/hooks/xx 中的sh脚本 // // husky不支持配置.git/hooks/xx 中的sh脚本
......
...@@ -12,7 +12,8 @@ ...@@ -12,7 +12,8 @@
}, },
"husky": { "husky": {
"hooks": { "hooks": {
"commit-msg": "node ./build/hooks.js $HUSKY_GIT_PARAMS $HUSKY_GIT_STDIN $GIT_INTERNAL_GETTEXT_SH_SCHEME $GIT_AUTHOR_EMAIL" "commit-msg": "node ./build/hooks.js $HUSKY_GIT_PARAMS $HUSKY_GIT_STDIN $GIT_INTERNAL_GETTEXT_SH_SCHEME $GIT_AUTHOR_EMAIL",
"pre-push": "node ./build/push.js $GIT_PUSH_OPTION_COUNT $GIT_PUSH_OPTION_N"
} }
}, },
"keywords": [], "keywords": [],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment