observing/pre-commit

Hook causes all edited files to be Staged upon commit.

Closed this issue · 1 comments

.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?

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