Skip to content

Commit 3a09162

Browse files
Update bin/githooks/pre-commit
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent ee00461 commit 3a09162

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bin/githooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fi
1414
if $HAS_PHP_CS_FIXER; then
1515

1616
# gets a list of all staged but not deleted php-files
17-
CHANGED_FILES=$(git diff --cached --name-only --diff-filter=ACMRTUXB HEAD | grep .php)
17+
CHANGED_FILES=$(git diff --cached --name-only --diff-filter=ACMRTUXB HEAD | grep '\.php$')
1818

1919
if [ ! -z "${CHANGED_FILES}" ]; then
2020
# runs phpcbf on the changed files

0 commit comments

Comments
 (0)