BLT uses git hooks to validate templates / php etc. These hooks are using PHP. So it would be great to pass the scripts to docksal CLI container.
For example the pre commit hook could work like this:
!/usr/bin/env bash
ROOT_DIR="$(pwd)/"
LIST=$( git diff --name-only --cached --diff-filter=ACM )
echo "Executing .git/hooks/pre-commit..."
git diff-index --quiet HEAD -- || echo "Untracked files are present, this may impact the validity of pre-commit checks."
fin exec /var/www/vendor/bin/blt internal:git-hook:execute:pre-commit "${LIST}"
# Return the status of the last run command.
exit $?
I could open a pull with these updated scripts and an updated local.blt.setting which points to the script:
Hi again,
BLT uses git hooks to validate templates / php etc. These hooks are using PHP. So it would be great to pass the scripts to docksal CLI container. For example the pre commit hook could work like this:
!/usr/bin/env bash
I could open a pull with these updated scripts and an updated local.blt.setting which points to the script:
What do you think? And thanks for your work.