fix: add --non-interactive, stdin=DEVNULL, and LC_ALL env to svn._run_svn

This commit is contained in:
2026-06-24 11:19:37 +02:00
parent e0e368cc9a
commit 485da0c549
+4
View File
@@ -32,12 +32,16 @@ def _run_svn(args: list, input: bytes = None, timeout: int = 120,
auth_args: Optional[list] = None) -> subprocess.CompletedProcess:
if auth_args:
args = auth_args + args
args = ["--non-interactive"] + args
env = {**os.environ, "LC_ALL": "C.UTF-8"}
try:
r = subprocess.run(
["svn"] + args,
stdin=subprocess.DEVNULL,
input=input,
capture_output=True,
timeout=timeout,
env=env,
)
except FileNotFoundError:
raise SVNError("svn CLI not found is subversion installed?")