+- **Git hooks inherit the invoker's PATH, so mise-managed hook tools need mise activation.** When `pre-commit`, `bats`, or any other mise-managed binary is wired into `.git/hooks/*`, running `git commit` from a shell without mise on PATH fails with `<tool> not found. Did you forget to activate your virtualenv?` (or similar). Wrap the commit in `mise x -- bash -c 'git commit ...'` so the hook subprocess inherits the shim path; this is the default workaround whenever the Bash tool's plain PATH is missing mise's tools.
0 commit comments