bpo-29798: Handle git worktree in `make patchcheck` (#629)

In git worktree directories, `.git` is a configuration
file rather than a subdirectory
1 file changed