qgis_deployment_toolbelt.profiles.local_git_handler module

Handle local git repository.

Author: Julien Moura (https://github.com/guts).

Inspired from: QGIS Resource Sharing

class qgis_deployment_toolbelt.profiles.local_git_handler.LocalGitHandler(source_repository_path_or_uri: str | Path, source_repository_type: str = 'git_local', branch_to_use: str | None = None)

Bases: RemoteProfilesHandlerBase

Handle local git repository.

__init__(source_repository_path_or_uri: str | Path, source_repository_type: str = 'git_local', branch_to_use: str | None = None) None

Constructor.

Parameters:

source_repository_path_or_uri (str | Path) – path to the source repository

Raises:

NotGitRepository – if uri_or_path doesn’t point to a valid Git repository