def _resolve_path(self) -> Optional[Path]:
        """
        Resolve the path of this git repo
        """
        proc, captured_stdout = self._exec(
            "rev-parse", "--show-superproject-working-tree", "--show-toplevel"
        )
        if proc.returncode == 0:
            captured_lines = (
                line.strip() for line in captured_stdout.decode().strip().split("\n")
            )
            longest_line = sorted((len(line), line) for line in captured_lines)[-1][1]
            return Path(longest_line)
        return None

        Resolve the path of this git repo
        
poethepoet/helpers/git.py