devops.git.remote
Module for querying and pushing references on the origin remote.
Functions
|
Run a Git command and return its stripped standard output. |
|
List references on |
|
Return the commit a tag on |
|
Return all release tags on |
Exceptions
|
Exception raised when a Git command fails. |
- exception devops.git.remote.GitRemoteError(message)[source]
Bases:
ExceptionException raised when a Git command fails.
- Parameters:
message (str)
- Return type:
None
- devops.git.remote.git(*arguments)[source]
Run a Git command and return its stripped standard output.
- Parameters:
*arguments (str) – The arguments passed to
git.- Returns:
str – The stripped standard output of the command.
- Raises:
GitRemoteError – If Git cannot be run or exits with an error.
- Return type:
- devops.git.remote.ls_remote(*patterns, options=())[source]
List references on
originthat match the given patterns.