Skip to content

Commit e03e9c0

Browse files
committed
fix(cmd.hg): Fix argument passing
1 parent 2db7e57 commit e03e9c0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

libvcs/cmd/hg.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ def run(
130130
kwargs["cwd"] = self.dir
131131

132132
if repository is not None:
133-
cli_args.append(f"--repository {repository}")
133+
cli_args.extend(["--repository", repository])
134134
if config is not None:
135-
cli_args.append("--config {config}")
135+
cli_args.extend(["--config", config])
136136
if pager is not None:
137-
cli_args.append(f"--pager {pager}")
137+
cli_args.append(["--pager", pager])
138138
if color is not None:
139-
cli_args.append(f"--color {color}")
139+
cli_args.append(["--color", color])
140140
if verbose is True:
141141
cli_args.append("verbose")
142142
if quiet is True:
@@ -188,13 +188,13 @@ def clone(
188188
local_flags: list[str] = []
189189

190190
if ssh is not None:
191-
local_flags.append(f"--ssh {ssh}")
191+
local_flags.extend(["--ssh", ssh])
192192
if remote_cmd is not None:
193-
local_flags.append(f"--remotecmd {remote_cmd}")
193+
local_flags.extend(["--remotecmd", remote_cmd])
194194
if rev is not None:
195-
local_flags.append(f"--rev {rev}")
195+
local_flags.extend(["--rev", rev])
196196
if branch is not None:
197-
local_flags.append(f"--branch {branch}")
197+
local_flags.extend(["--branch", branch])
198198
if no_update is True:
199199
local_flags.append("--noupdate")
200200
if pull is True:

0 commit comments

Comments
 (0)