@@ -131,13 +131,13 @@ def run(
131
131
kwargs ["cwd" ] = self .dir
132
132
133
133
if repository is not None :
134
- cli_args .append ( f "--repository { repository } " )
134
+ cli_args .extend ([ "--repository" , repository ] )
135
135
if config is not None :
136
- cli_args .append ( "--config { config}" )
136
+ cli_args .extend ([ "--config" , config ] )
137
137
if pager is not None :
138
- cli_args .append (f "--pager { pager } " )
138
+ cli_args .append ([ "--pager" , pager ] )
139
139
if color is not None :
140
- cli_args .append (f "--color { color } " )
140
+ cli_args .append ([ "--color" , color ] )
141
141
if verbose is True :
142
142
cli_args .append ("verbose" )
143
143
if quiet is True :
@@ -189,13 +189,13 @@ def clone(
189
189
local_flags : list [str ] = []
190
190
191
191
if ssh is not None :
192
- local_flags .append ( f "--ssh { ssh } " )
192
+ local_flags .extend ([ "--ssh" , ssh ] )
193
193
if remote_cmd is not None :
194
- local_flags .append ( f "--remotecmd { remote_cmd } " )
194
+ local_flags .extend ([ "--remotecmd" , remote_cmd ] )
195
195
if rev is not None :
196
- local_flags .append ( f "--rev { rev } " )
196
+ local_flags .extend ([ "--rev" , rev ] )
197
197
if branch is not None :
198
- local_flags .append ( f "--branch { branch } " )
198
+ local_flags .extend ([ "--branch" , branch ] )
199
199
if no_update is True :
200
200
local_flags .append ("--noupdate" )
201
201
if pull is True :
0 commit comments