observing / pre-commit

Automatically installs a git pre-commit script in your git repository which runs your `npm test` on pre-commit
MIT License
1.88k stars 153 forks source link

Hook causes all edited files to be Staged upon commit. #119

Closed ghost closed 6 years ago

ghost commented 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.

stack overflow question

Is this the functionality of this particular hook?

ghost commented 6 years ago

Issue was caused by added alias in package json. please disregard :)