datalad_next.runners.call_git_success
- datalad_next.runners.call_git_success(args: list[str], *, cwd: Path | None = None, capture_output: bool = False) bool [source]
Call Git and report success or failure of the command
args
is a list of arguments for the Git command. This list must not contain the Git executable itself. It will be prepended (unconditionally) to the arguments before passing them on.If
cwd
is not None, the function changes the working directory tocwd
before executing the command.If
capture_output
isTrue
, process output is captured, but not returned. By default process output is not captured.