Skip to content

Commit ff8a294

Browse files
committed
Call git update-index in pre-commit
1 parent d50b3d4 commit ff8a294

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,10 @@
5151
},
5252
"extra": {
5353
"hooks": {
54-
"pre-commit": "git diff-index --cached --name-only HEAD | xargs -n1 vendor/bin/php-cs-fixer fix"
54+
"pre-commit": [
55+
"git diff-index --cached --name-only HEAD | vendor/bin/php-cs-fixer fix",
56+
"git update-index --again"
57+
]
5558
}
5659
}
5760
}

0 commit comments

Comments
 (0)