Answer stability round 2: 0 🔴, 1 🟡 (0 misread); the Git protocol takes errors, as git does

This commit is contained in:
2026-10-28 22:46:41 +01:00
parent 2866b828bc
commit 6a9af88aed
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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.
+1 -1
View File
@@ -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,