Closed ghost closed 6 years ago
.git/Hook/pre-commit:
#!/bin/bash ./node_modules/pre-commit/hook RESULT=$? [ $RESULT -ne 0 ] && exit 1 exit 0
pre-commit/hook: ln49, "$BINARY" "$("$BINARY" -e "console.log(require.resolve('pre-commit'))")" Is causing all files with changes to be staged and included in commit in VSCode and Git Bash.
"$BINARY" "$("$BINARY" -e "console.log(require.resolve('pre-commit'))")"
stack overflow question
Is this the functionality of this particular hook?
Issue was caused by added alias in package json. please disregard :)
.git/Hook/pre-commit:
pre-commit/hook: ln49,
"$BINARY" "$("$BINARY" -e "console.log(require.resolve('pre-commit'))")"
Is causing all files with changes to be staged and included in commit in VSCode and Git Bash.stack overflow question
Is this the functionality of this particular hook?