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 to cwd before executing the command.

If force_c_locale is True 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.