fix: pass auth_args to svn commit and svn copy calls
This commit is contained in:
@@ -373,6 +373,7 @@ def sync_git_to_svn(mirror: Mirror) -> int:
|
||||
|
||||
|
||||
def _sync_git_to_svn_impl(mirror: Mirror) -> int:
|
||||
auth_args = mirror.config.svn.auth_args()
|
||||
git_dir = str(mirror.canonical_dir)
|
||||
svn_cfg = mirror.config.svn
|
||||
count = 0
|
||||
@@ -402,7 +403,7 @@ def _sync_git_to_svn_impl(mirror: Mirror) -> int:
|
||||
result = _run_svn(
|
||||
["commit", "--file", "-", "--username", svn_username],
|
||||
input=message.encode("utf-8"),
|
||||
wc=wc, timeout=120,
|
||||
wc=wc, timeout=120, auth_args=auth_args,
|
||||
)
|
||||
new_rev = _parse_commit_revision(result)
|
||||
|
||||
@@ -449,7 +450,7 @@ def _sync_git_to_svn_impl(mirror: Mirror) -> int:
|
||||
result = _run_svn(
|
||||
["copy", "-r", str(source_rev), src_url, dst_url,
|
||||
"-m", message, "--username", svn_username],
|
||||
timeout=120,
|
||||
timeout=120, auth_args=auth_args,
|
||||
)
|
||||
new_rev = _parse_commit_revision(result)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user