From 485da0c54910dc6601b90d6b83c61980231dc577 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Wed, 24 Jun 2026 11:19:37 +0200 Subject: [PATCH] fix: add --non-interactive, stdin=DEVNULL, and LC_ALL env to svn._run_svn --- svn_mirror/svn.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/svn_mirror/svn.py b/svn_mirror/svn.py index 87203e9..91356b9 100644 --- a/svn_mirror/svn.py +++ b/svn_mirror/svn.py @@ -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?")