Skip to content

Commit 6aa3c54

Browse files
committed
docs(scrub_git_env): mention linked worktree as the trigger
Assisted-by: Sisyphus:claude-sonnet-4-6 opencode
1 parent 9c438a2 commit 6aa3c54

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

hooks/_common.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ function common::parse_cmdline {
117117
}
118118

119119
#######################################################################
120-
# Scrub GIT_* vars that leak the parent repo location into child Git
121-
# processes (see https://git-scm.com/docs/git#_environment_variables).
120+
# Scrub GIT_* vars inherited from a linked Git worktree that would
121+
# leak the parent repo location into child Git processes
122+
# (see https://git-scm.com/docs/git#_environment_variables).
122123
#
123124
# pre-commit scrubs GIT_* only for its own internal Git calls, not for
124125
# hook subprocesses - hook authors must handle it themselves:

0 commit comments

Comments
 (0)