datalad_next.runners.call_git
- datalad_next.runners.call_git(args: list[str], *, cwd: Path | None = None, force_c_locale: bool = False) None [source]
Call Git with no output capture, raises on non-zero exit.
If
cwd
is not None, the function changes the working directory tocwd
before executing the command.If
force_c_locale
isTrue
the environment of the Git process is altered to ensure output according to the C locale. This is useful when output has to be processed in a locale invariant fashion.