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
The post-checkout hook does not run if .pre-commit.yaml is not in the repository:
$ nix develop
...
pre-commit installed at .git/hooks/post-checkout
$ git worktree add ../test
Preparing worktree (new branch 'test')
warning: asked to inherit tracking from 'main', but no remote is set
HEAD is now at b67e139 init
No .pre-commit-config.yaml file was found
- To temporarily silence this, run `PRE_COMMIT_ALLOW_NO_CONFIG=1 git ...`
- To permanently silence this, install pre-commit with the --allow-missing-config option
- To uninstall pre-commit run `pre-commit uninstall`
I believe that either #494 or #496 would create configuration options to fix this by using an absolute path for the .pre-commit-config.yaml.
The text was updated successfully, but these errors were encountered:
eval-on-point
changed the title
post-checkout hooks do not runpost-checkout hooks do not run on new worktrees when .pre-commit-config.yaml is not committed
Jan 9, 2025
Given the following
flake.nix
:The
post-checkout
hook does not run if.pre-commit.yaml
is not in the repository:I believe that either #494 or #496 would create configuration options to fix this by using an absolute path for the
.pre-commit-config.yaml
.The text was updated successfully, but these errors were encountered: