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
It looks to me from looking at your auto-created hook installed that you are passing all args to the script so it maybe I haven't configured this correctly.
yep -- pre-commit is based on files -- for now the additional non-file arguments are discarded
there's precedent for other hook types to forward these arguments along (for example PRE_COMMIT_REMOTE_NAME for pre-push) -- it looks like these were just not implemented for prepare-commit-msg
please send a patch to add those if you'd like support for those as environment variables -- I'd grep around for PRE_COMMIT_REMOTE_NAME and follow the pattern used there
search tried in the issue tracker
Yes
describe your issue
When I run
git commit
with certain arguments I expect to get two or more arguments passed to argv of my script as per the specification:Will print
It looks to me from looking at your auto-created hook installed that you are passing all args to the script so it maybe I haven't configured this correctly.
Thanks
pre-commit --version
pre-commit 2.19.0
.pre-commit-config.yaml
~/.cache/pre-commit/pre-commit.log (if present)
No response
The text was updated successfully, but these errors were encountered: