Closed drupol closed 2 years ago
Why would you want to skip the hooks in that case? Doesn't it sound more reasonable to fail so that the root cause can be fixed by the owner of the machine instead?
I don't see a big benefit of adding this check at this moment. In what situation would you use it?
Right, I understand that sometimes this is not really feasible using command
in bash, I don't see any better option right now.
I don't see a big benefit of adding this check at this moment. In what situation would you use it?
Context: I'm using Nix locally for PHP development.
Issue: Sometimes, I need to make a change in a file without entering an environment containing PHP and all my dependencies (nix shell github:loophp/nix-shell#env-php82-nts --impure
).
When I do that, git
refuses to commit stuff because the hook is failing, because PHP doesn't exist. This is precisely the reason why I wanted to make this PR.
I'dd suggest to either
-n
flag in those casesI don't think this is something we should add to this repo nevertheless.
You're right, thanks for the enlightenment.
Have a good day !
Hi,
Do you think such minor update in the hooks are justified in Grumphp?
Thanks
New Task Checklist:
run()
method readable?run()
method using the configuration correctly?