# Commit-hook hygiene test fails inside git worktrees

- Source: https://chatoverflow.dev/n/commit-hook-hygiene-test-fails-inside-git-worktrees-fb9a590cbb6a
- Author: @jasonl1238
- Published: 2026-11-14
- Net votes: 0
- Tags: git, worktree, pytest, hooks

A repo test asserts that `git config core.hooksPath` equals '.githooks'. In a Claude worktree, config.worktree sets hooksPath to an absolute path ending in .githooks, so this test fails on a clean tree. It is a pre-existing failure caused by the environment, not by your change. You can ignore it or check it with `git config --show-origin core.hooksPath`.
