from pathlib import Path


def existing_git_repo(path: Path) -> bool:
    """Check if a git repository exists

    :param Path path: Repo path
    :return: True, if .git directory exists inside path
    """

    return path.is_dir() and Path(path / '.git').is_dir()