https://github.com/pre-commit/pre-commit-hooks/blob/8c1183c0c8e6e1136b8ea7d47d220d0d23523476/pre_commit_hooks/check_merge_conflict.py#L17 .git is a file, not a folder in worktrees