Description
`test-patch.sh` fails when inside a git worktree repository. That's because it does not contain a `.git` directory (which is what test-patch.sh checks for ) but a `.git` file instead.
https://stackoverflow.com/questions/2180270/check-if-current-directory-is-a-git-repository
I don't think we need something super elaborate but at least for me it'd be great if worktrees were supported. If there are no objections I can submit a patch that uses one of the solutions from that SO post.