def METHOD_NAME(self, cmd, ignore_status=False):
    """
    Wraps git commands.
    :param cmd: Command to be executed.
    :param ignore_status: Whether we should suppress error.CmdError
            exceptions if the command did return exit code !=0 (True), or
            not suppress them (False).
    """
    os.chdir(self.destination_dir)
    return process.run(
        rf"{self.cmd} {astring.shell_escape(cmd)}", ignore_status=ignore_status
    )