From 24226735847da8f75f6d8d429aa1d8402352bdcf Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Tue, 23 Jun 2026 13:30:55 +0200 Subject: [PATCH] fix: pipe SVN password to git svn stdin when prompted --- svn_mirror/mirror.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/svn_mirror/mirror.py b/svn_mirror/mirror.py index dbdf024..c2d567e 100644 --- a/svn_mirror/mirror.py +++ b/svn_mirror/mirror.py @@ -223,9 +223,10 @@ class Mirror: logger.info("Starting git svn clone (this may take a while)…") logger.debug("Running: %s", " ".join(str(a) for a in args)) + password = svn_cfg.password or "" process = subprocess.Popen( args, - stdin=subprocess.DEVNULL, + stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True, @@ -235,6 +236,9 @@ class Mirror: line = line.rstrip() if line: logger.info("[git svn] %s", line) + if "Password for" in line and password: + process.stdin.write(password + "\n") + process.stdin.flush() ret = process.wait() if ret != 0: