Merge branch 'gg/worktree-from-the-above'

In a non-bare repository, the behavior of Git when the core.worktree configuration variable points at a directory that has a repository as its subdirectory, regressed in Git 2.27 days. * gg/worktree-from-the-above: dir: minor refactoring / clean-up dir: traverse into repository

Junio C Hamano committed Jul 14, 2022 at 15:03 UTC dc6315e1fc1d5c0d7afd3fe20cf192bd4c484930

No changes.