-
Notifications
You must be signed in to change notification settings - Fork 37.8k
Closed
Labels
invalidIssue identified as not relevant or not validIssue identified as not relevant or not valid
Description
- VSCode Version: 1.8.0-insider (f298203)
- OS Version: macOS 10.12.1 (16B2657)
Steps to Reproduce:
- Change some code
- Commit code
- Code gets committed, but the pre-commit hook fails
Here is the code of the pre-commit git hook:
#!/bin/sh
# Redirect output to stderr.
exec 1>&2
if [ "$(git status |sed 's/ *//g'|grep modified:)x" != 'x' ] ; then
echo '### Changes: Running lint and test to avoid committing errors.'
npm run test
echo '### Tested.'
fi
When I run the commit command from the shell, the commit is aborted and the code is not committed
git commit -m "Some stuff here"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
invalidIssue identified as not relevant or not validIssue identified as not relevant or not valid