From 6a9af88aed91885538747c209a9ba86ce398dd77 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 28 Oct 2026 22:46:41 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20stability=20round=202:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20the=20Git?= =?UTF-8?q?=20protocol=20takes=20errors,=20as=20git=20does?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/git_repo.py | 2 +- bin/loop_claude/test_loop_claude.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,