`.git` doesn't exist for worktrees. `x.py setup` should use `git rev-parse --git-common-dir` instead. ``` x.py encountered an error -- do you already have the git hook installed? Not a directory (os error 20) ``` _Originally posted by @jyn514 in https://github.com/rust-lang/rust/pull/76356#discussion_r499968976_
.gitdoesn't exist for worktrees.x.py setupshould usegit rev-parse --git-common-dirinstead.Originally posted by @jyn514 in #76356 (comment)