We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stop-on-failure
When the hook is a sequence of commands, execution is not stopped when the command fails.
When the first command fails, it proceeds to the next command, and if the next command did not fail, completes the commit.
The text was updated successfully, but these errors were encountered:
any updates on this? does not work for me either :-(
Sorry, something went wrong.
Alternatively you can explicitly exit the individual commands. Not a fix, but a workaround for now:
"pre-commit": [ "composer phpcs $(git diff --staged --name-only --diff-filter=ACM) || exit 1", "gitleaks protect -v --staged || exit 1" ]
No branches or pull requests
When the hook is a sequence of commands, execution is not stopped when the command fails.
When the first command fails, it proceeds to the next command, and if the next command did not fail, completes the commit.
The text was updated successfully, but these errors were encountered: