@@ -218,29 +218,37 @@ def obtain_additional_swift_sources(pool_args):
218
218
(args , repo_name , repo_info , repo_branch , remote , with_ssh , scheme_name ,
219
219
skip_history , skip_repository_list ) = pool_args
220
220
221
+ env = dict (os .environ )
222
+ env .update ({'GIT_TERMINAL_PROMPT' : 0 })
223
+
221
224
with shell .pushd (SWIFT_SOURCE_ROOT , dry_run = False , echo = False ):
222
225
223
226
print ("Cloning '" + repo_name + "'" )
224
227
225
228
if skip_history :
226
- shell .run (['env' , 'GIT_TERMINAL_PROMPT=0' , ' git' , 'clone' ,
229
+ shell .run (['git' , 'clone' ,
227
230
'--recursive' , '--depth' , '1' , '--branch' ,
228
231
repo_branch , remote , repo_name ],
232
+ env = env ,
229
233
echo = True )
230
234
else :
231
- shell .run (['env' , 'GIT_TERMINAL_PROMPT=0' , ' git' , 'clone' ,
235
+ shell .run (['git' , 'clone' ,
232
236
'--recursive' , remote , repo_name ],
237
+ env = env ,
233
238
echo = True )
234
239
if scheme_name :
235
240
src_path = os .path .join (SWIFT_SOURCE_ROOT , repo_name , ".git" )
236
- shell .run (['env' , 'GIT_TERMINAL_PROMPT=0' , ' git' , '--git-dir' ,
241
+ shell .run (['git' , '--git-dir' ,
237
242
src_path , '--work-tree' ,
238
243
os .path .join (SWIFT_SOURCE_ROOT , repo_name ),
239
- 'checkout' , repo_branch ], echo = False )
244
+ 'checkout' , repo_branch ],
245
+ env = env ,
246
+ echo = False )
240
247
with shell .pushd (os .path .join (SWIFT_SOURCE_ROOT , repo_name ),
241
248
dry_run = False , echo = False ):
242
- shell .run (['env' , 'GIT_TERMINAL_PROMPT=0' , "git" , "submodule" ,
249
+ shell .run (["git" , "submodule" ,
243
250
"update" , "--recursive" ],
251
+ env = env ,
244
252
echo = False )
245
253
246
254
0 commit comments