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?")