-
Notifications
You must be signed in to change notification settings - Fork 201
--install-hooks doesn't install all hooks #1160
Copy link
Copy link
Closed
Labels
questionFurther information is requestedFurther information is requested
Description
Summary
Given this config below, I would assume that prek install --install-hooks would install .git/hooks/commit-msg and .git/hooks/pre-push, but it doesn't:
❯ prek install
prek installed at `.git/hooks/pre-commit`
❯ prek install --install-hooks
prek installed at `.git/hooks/pre-commit`I need to manually install the hooks with:
❯ prek install --hook-type commit-msg --hook-type pre-push
prek installed at `.git/hooks/commit-msg`
prek installed at `.git/hooks/pre-push`The --install-hooks perameter is decribed in the help output with:
Create hook environments for all hooks used in the config file
Shouldn't it then auto-detect and install all configured hook (types) ?
Maybe I get it wrong though.
Platform
Linux 6.16.8-1-MANJARO x86_64 GNU/Linux
Version
prek 0.2.3
.pre-commit-config.yaml
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.10.0
hooks:- id: commitizen
stages: [commit-msg] - id: commitizen-branch
stages: [pre-push]
- id: commitizen
Log file
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested