Skip to content

Commit 2b23312

Browse files
committed
fix(cmd.svn): Argument passing
1 parent 57a404a commit 2b23312

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

libvcs/cmd/svn.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ def run(
9898
if non_interactive is True:
9999
cli_args.append("--non-interactive")
100100
if username is not None:
101-
cli_args.append(f"--username {username}")
101+
cli_args.extend(["--username", username])
102102
if password is not None:
103-
cli_args.append(f"--password {password}")
103+
cli_args.extend(["--password", password])
104104
if trust_server_cert is True:
105105
cli_args.append("--trust-server_cert")
106106
if config_dir is not None:
107-
cli_args.append("--config-dir {config_dir}")
107+
cli_args.extend(["--config-dir", str(config_dir)])
108108
if config_option is not None:
109-
cli_args.append("--config-option {config_option}")
109+
cli_args.extend(["--config-option", str(config_option)])
110110

111111
return run(args=cli_args, **kwargs)
112112

@@ -247,7 +247,7 @@ def auth(
247247
local_flags: list[str] = [*args]
248248

249249
if remove is not None:
250-
local_flags.append(f"--remove {remove}")
250+
local_flags.extend(["--remove", remove])
251251
if show_passwords is True:
252252
local_flags.append("--show-passwords")
253253

@@ -317,7 +317,7 @@ def blame(
317317
if xml is True:
318318
local_flags.append("--xml")
319319
if extensions is not None:
320-
local_flags.append(f"--extensions {extensions}")
320+
local_flags.extend(["--extensions", extensions])
321321
if force is True:
322322
local_flags.append("--force")
323323

@@ -418,7 +418,7 @@ def commit(
418418
if no_unlock is True:
419419
local_flags.append("--no-unlock")
420420
if file is not None:
421-
local_flags.append(f"--file {file}")
421+
local_flags.extend(["--file", str(file)])
422422
if force_log is True:
423423
local_flags.append("--force")
424424
if include_externals is True:

0 commit comments

Comments
 (0)