Closed mm-bfu closed 5 months ago
No you are right that's looks like an encoding issue because of the whitespaces in the multiple commit hashes string.
I will update the template and make sure the quoting works properly.
Strange for me the double quotes are working the way they should. I don't get the error :/
Tested on MacOS with zsh and bash. What environment are you working with?
Forget what I said you are using the docker mode and then the command already is an argument so using the additional quotes makes sense, at least somehow ;)
I just released version 5.23.1
I you re-install your hooks they should be installed with the appropriate quoting. If you have any issues feel free to re-open the issue.
Thanks for reporting the issue and looking for a solution. Greatly appreciated
We use a basic configuration with ddev. All hooks work well, except for the pre-push hook.
captainhook.json:
The error:
What I noticed: Captain hook creates the following command in .git/hooks/pre-push:
Possible fix: It works when I add escaped double quotes around the input option:
Questions:
Thank you!