def __init__(self, path: str):
    "\n        Create an instance of GitRepoVersionInfo\n        :param path: The path to search for git information. It searches for '.git' in this folder or any parent\n        folder.\n        "
    self._is_repo = False
    try:
        self._repo = git.Repo(path, search_parent_directories=True)
        self._is_repo = True
    except git.exc.InvalidGitRepositoryError:
        self._repo = None
Create an instance of GitRepoVersionInfo
:param path: The path to search for git information. It searches for '.git' in this folder or any parent
folder.
def __init__(self, path: str):
    "\n        Create an instance of GitRepoVersionInfo\n        :param path: The path to search for git information. It searches for '.git' in this folder or any parent\n        folder.\n        "
    self._is_repo = False
    try:
        self._repo = git.Repo(path, search_parent_directories=True)
        self._is_repo = True
    except git.exc.InvalidGitRepositoryError:
        self._repo = None