fix(delegation): keep encoding= on the text=True line so the line-based footgun scanner sees it

This commit is contained in:
teknium1
2026-09-20 16:10:48 -07:00
committed by Teknium
parent 4f46bbfb92
commit 287cbb7edb

View File

@@ -47,8 +47,8 @@ def git_state_hint(cwd: Optional[str]) -> Optional[str]:
def run(*args: str) -> Optional[str]:
try:
out = subprocess.run(["git", "-C", cwd, *args], capture_output=True, text=True,
encoding="utf-8", errors="replace",
out = subprocess.run(["git", "-C", cwd, *args], capture_output=True,
text=True, encoding="utf-8", errors="replace",
stdin=subprocess.DEVNULL, timeout=_GIT_TIMEOUT_S)
except (OSError, subprocess.SubprocessError):
return None