Skip to content

Commit f4082b8

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

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
@@ -131,13 +131,13 @@ def run(
131131
kwargs["cwd"] = self.dir
132132

133133
if repository is not None:
134-
cli_args.append(f"--repository {repository}")
134+
cli_args.extend(["--repository", repository])
135135
if config is not None:
136-
cli_args.append("--config {config}")
136+
cli_args.extend(["--config", config])
137137
if pager is not None:
138-
cli_args.append(f"--pager {pager}")
138+
cli_args.append(["--pager", pager])
139139
if color is not None:
140-
cli_args.append(f"--color {color}")
140+
cli_args.append(["--color", color])
141141
if verbose is True:
142142
cli_args.append("verbose")
143143
if quiet is True:
@@ -189,13 +189,13 @@ def clone(
189189
local_flags: list[str] = []
190190

191191
if ssh is not None:
192-
local_flags.append(f"--ssh {ssh}")
192+
local_flags.extend(["--ssh", ssh])
193193
if remote_cmd is not None:
194-
local_flags.append(f"--remotecmd {remote_cmd}")
194+
local_flags.extend(["--remotecmd", remote_cmd])
195195
if rev is not None:
196-
local_flags.append(f"--rev {rev}")
196+
local_flags.extend(["--rev", rev])
197197
if branch is not None:
198-
local_flags.append(f"--branch {branch}")
198+
local_flags.extend(["--branch", branch])
199199
if no_update is True:
200200
local_flags.append("--noupdate")
201201
if pull is True:

0 commit comments

Comments
 (0)