-
-
Notifications
You must be signed in to change notification settings - Fork 932
Closed
Description
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:
def main(argv, argc):
print(argv, argc)Will print
['tools/hooks/add-commit-template.py', '.git/COMMIT_EDITMSG'] 2
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
repos:
- repo:
hooks:
- id: commit-template-local
name: Provide Commit Message Template
entry: tools/hooks/add-commit-template.py
language: python
stages: [ prepare-commit-msg ]~/.cache/pre-commit/pre-commit.log (if present)
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
