Give the reload and the strike their own modules

This commit is contained in:
2026-09-28 11:11:23 +02:00
parent 5de7e0fc9c
commit 4171a1ecbe
9 changed files with 88 additions and 69 deletions
+2 -2
View File
@@ -3,8 +3,8 @@ import subprocess
from loop_claude.outcome import Stop
def checkout_root():
found = subprocess.run(["git", "rev-parse", "--show-toplevel"], capture_output=True, text=True)
def checkout_root(cwd):
found = subprocess.run(["git", "rev-parse", "--show-toplevel"], capture_output=True, cwd=cwd, text=True)
if found.returncode != 0:
return Stop(1, found.stderr.strip())
return found.stdout.strip()