Commit ad3d8fe4 authored by shangbj's avatar shangbj

1

parent e79f904f
......@@ -4,12 +4,12 @@
// console.log('++++', data)
// });
const fs = require('fs')
// const path = require('path')
const path = require('path')
// const shell = require('shelljs')
// const exec = require('child_process').exec
var commitMsg = fs.readFileSync(path.resolve(__dirname, '../.git/refs/heads'), 'utf-8');
// var commitMsg = fs.readFileSync(path.resolve(__dirname, '../.git/refs/heads'), 'utf-8');
console.log(commitMsg)
console.log(local_ref,local_sha,remote_ref,remote_sha)
// exec('git diff --name-only', function(err, stdout,stderr){
// console.log('err',err)
// console.log('stdout',stdout)
......
......@@ -12,8 +12,7 @@
},
"husky": {
"hooks": {
"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_PREFIX"
"commit-msg": "node ./build/hooks.js $HUSKY_GIT_PARAMS $HUSKY_GIT_STDIN $GIT_INTERNAL_GETTEXT_SH_SCHEME $GIT_AUTHOR_EMAIL"
}
},
"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