diff --git a/bin/git_repo.py b/bin/git_repo.py index 93b08d1e..beef0f2a 100644 --- a/bin/git_repo.py +++ b/bin/git_repo.py @@ -48,7 +48,7 @@ def git(*args: str, cwd: str | None = None, timeout: float | None = None, guarde class Git(typing.Protocol): """Runs git as `git` does.""" - def __call__(self, *args: str, cwd: str | None = None, timeout: float | None = None, guarded: bool = False) -> str | Failure: ... + def __call__(self, *args: str, cwd: str | None = None, timeout: float | None = None, guarded: bool = False, errors: str = "strict") -> str | Failure: ... # Runs git with the given arguments, in the checkout and with the options its caller bound, as functools.partial(git, cwd=...) does. diff --git a/bin/loop_claude/test_loop_claude.py b/bin/loop_claude/test_loop_claude.py index bdac389e..de1dd7b5 100644 --- a/bin/loop_claude/test_loop_claude.py +++ b/bin/loop_claude/test_loop_claude.py @@ -79,7 +79,7 @@ class FakeEffects: claude_on_terminal=self.on_terminal_claude, discard_typed=lambda: self.calls.append(("discard_typed", None)), execv=self.execv, - git=lambda *args, cwd=None, timeout=None, guarded=False: self.answer("git", list(args)), + git=lambda *args, cwd=None, timeout=None, guarded=False, errors="strict": self.answer("git", list(args)), input=lambda prompt: self.answer("input", prompt), local_time=lambda seconds: f"<{seconds}>", memory=self.memory,