Answer the architect's first round

This commit is contained in:
2026-10-01 23:19:10 +02:00
parent f385b563f0
commit 00446be689
12 changed files with 188 additions and 150 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ from loop_claude.outcome import Stop
def checkout_root(cwd, effects: Effects) -> str | Stop:
try:
found = effects.run(["git", "rev-parse", "--show-toplevel"], capture_output=True, cwd=cwd, text=True)
found = effects.git(["rev-parse", "--show-toplevel"], str(cwd))
except OSError as failure:
return Stop(1, f"could not start git: {failure.strerror}")
if found.returncode != 0:
@@ -15,7 +15,7 @@ def checkout_root(cwd, effects: Effects) -> str | Stop:
def checkouts(root, effects: Effects) -> list[str]:
found = [root]
try:
listing = effects.run(["git", "worktree", "list", "--porcelain"], capture_output=True, cwd=root, text=True)
listing = effects.git(["worktree", "list", "--porcelain"], root)
except OSError:
return found
if listing.returncode == 0: