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
When defining an array as a composer git hook on windows, only the first in the array gets executed. This bug may be related to running in windows as running the same project in wsl will result in the expected output.
Hi @vardrop this seems a bit strange especially because when the hook is executed by git itself, it works as expected. Unfortunately, I do not have a Windows machine to reproduce and investigate. Are you willing to do some more investigation? I can assist if needed
You can reconstruct this bug by using vardrop/cghooks-test
Description
When defining an array as a composer git hook on windows, only the first in the array gets executed. This bug may be related to running in windows as running the same project in
wsl
will result in the expected output.composer.json
I have confirmed that the second script above never actually gets called by replacing
echo 2 dolor eset
withtouch test.txt
.Versions
Expected
When running
composer cghooks pre-commit
, Id expect the output to beActual
but given the above configuration it will result in
Exceptions
Nevertheless, running
git commit
works as expectedThe text was updated successfully, but these errors were encountered: