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
argsis 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
cwdis not None, the function changes the working directory tocwdbefore executing the command.If
capture_outputisTrue, process output is captured, but not returned. By default process output is not captured.