libvcs.sync.git¶
For git(1).
Compare to:
fabtools.require.git,
salt.states.git,
ansible.builtin.git
Tool to manage a local git clone from an external git repository.
-
exception libvcs.sync.git.GitStatusParsingException¶
Bases:
LibVCSExceptionRaised when git status output is not in the expected format.
-
exception libvcs.sync.git.GitRemoteOriginMissing¶
Bases:
LibVCSExceptionRaised when git origin remote was not found.
-
exception libvcs.sync.git.GitRemoteSetError¶
Bases:
LibVCSExceptionRaised when a git remote could not be set.
-
exception libvcs.sync.git.GitNoBranchFound¶
Bases:
LibVCSExceptionRaised with git branch could not be found.
-
exception libvcs.sync.git.GitRemoteRefNotFound¶
Bases:
CommandErrorRaised when a git remote ref (tag, branch) could not be found.
-
libvcs.sync.git.convert_pip_url(pip_url)¶
Convert pip-style URL to a VCSLocation.
Prefixes stub URLs like ‘user@hostname:user/repo.git’ with ‘ssh://’. That’s required because although they use SSH they sometimes doesn’t work with a ssh:// scheme (e.g. Github). But we need a scheme for parsing. Hence we remove it again afterwards and return it as a stub. The manpage for git-clone(1) refers to this as the “scp-like styntax”.
- Parameters:
pip_url (str)
- Return type: