You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
I have tried to override the pre-commit script to check the blt phpcs in a project. But it's not working.
Directory path: Project Root->blt->scripts->git-hooks->pre-commit
#!/usr/bin/env bash
ROOT_DIR="$(pwd)/"
LIST=$( git diff --name-only --cached --diff-filter=ACM )
echo "Executing phpcs .git/hooks/pre-commit..."
git diff-index --quiet HEAD -- || echo "Untracked files are present, this may impact the validity of pre-commit checks."
"${ROOT_DIR}"/vendor/bin/blt validate:phpcs "${LIST}"
# Return the status of the last run command.
exit $?
No description provided.
The text was updated successfully, but these errors were encountered: