get_git_root

soap.utils.get_git_root(path: Union[str, Path]) Path[source]

Get root path of the Git repository containing the path provided.

Raises:

git.InvalidGitRepositoryError – If the provided path is not in a Git repository