fix(git-hooks): always create the commit msg hook

This commit is contained in:
Oliver Davies 2023-08-26 23:05:51 +01:00
parent acd73bcb4f
commit ec494d934f
2 changed files with 7 additions and 1 deletions

View file

@ -71,7 +71,6 @@ artisan *args:
{{ "just _run artisan {{ args }}" | raw }}
{% endif %}
{% if experimental.runGitHooksBeforePush %}
# Enable or disable Git hooks
git-hooks command:
#!/usr/bin/env bash
@ -91,6 +90,7 @@ git-hooks command:
;;
esac
{% if experimental.runGitHooksBeforePush %}
test-commit:
{% if "phpcs" in php|keys -%}
just _run php phpcs