@@ -260,7 +260,7 @@ def update_all_repositories(args, config, scheme_name, cross_repos_pr):
260
260
261
261
def obtain_additional_swift_sources (pool_args ):
262
262
(args , repo_name , repo_info , repo_branch , remote , with_ssh , scheme_name ,
263
- skip_history , skip_repository_list ) = pool_args
263
+ skip_history , skip_tags , skip_repository_list ) = pool_args
264
264
265
265
env = dict (os .environ )
266
266
env .update ({'GIT_TERMINAL_PROMPT' : 0 })
@@ -270,14 +270,14 @@ def obtain_additional_swift_sources(pool_args):
270
270
print ("Cloning '" + repo_name + "'" )
271
271
272
272
if skip_history :
273
- shell .run (['git' , 'clone' ,
274
- '--recursive ' , '--depth' , '1' , '--branch' ,
275
- repo_branch , remote , repo_name ] ,
273
+ shell .run (['git' , 'clone' , '--recursive' , '--depth' , '1' ,
274
+ '--branch ' , repo_branch , remote , repo_name ] +
275
+ ([ '--no-tags' ] if skip_tags else []) ,
276
276
env = env ,
277
277
echo = True )
278
278
else :
279
- shell .run (['git' , 'clone' ,
280
- '--recursive' , remote , repo_name ] ,
279
+ shell .run (['git' , 'clone' , '--recursive' , remote , repo_name ] +
280
+ ([ '--no-tags' ] if skip_tags else []) ,
281
281
env = env ,
282
282
echo = True )
283
283
if scheme_name :
@@ -297,7 +297,8 @@ def obtain_additional_swift_sources(pool_args):
297
297
298
298
299
299
def obtain_all_additional_swift_sources (args , config , with_ssh , scheme_name ,
300
- skip_history , skip_repository_list ):
300
+ skip_history , skip_tags ,
301
+ skip_repository_list ):
301
302
302
303
pool_args = []
303
304
with shell .pushd (args .source_root , dry_run = False , echo = False ):
@@ -342,7 +343,7 @@ def obtain_all_additional_swift_sources(args, config, with_ssh, scheme_name,
342
343
continue
343
344
344
345
pool_args .append ([args , repo_name , repo_info , repo_branch , remote ,
345
- with_ssh , scheme_name , skip_history ,
346
+ with_ssh , scheme_name , skip_history , skip_tags ,
346
347
skip_repository_list ])
347
348
348
349
if not pool_args :
@@ -470,6 +471,10 @@ def main():
470
471
"--skip-history" ,
471
472
help = "Skip histories when obtaining sources" ,
472
473
action = "store_true" )
474
+ parser .add_argument (
475
+ "--skip-tags" ,
476
+ help = "Skip tags when obtaining sources" ,
477
+ action = "store_true" )
473
478
parser .add_argument (
474
479
"--skip-repository" ,
475
480
metavar = "DIRECTORY" ,
@@ -548,6 +553,7 @@ def main():
548
553
clone = args .clone
549
554
clone_with_ssh = args .clone_with_ssh
550
555
skip_history = args .skip_history
556
+ skip_tags = args .skip_tags
551
557
scheme = args .scheme
552
558
github_comment = args .github_comment
553
559
@@ -584,6 +590,7 @@ def main():
584
590
clone_with_ssh ,
585
591
scheme ,
586
592
skip_history ,
593
+ skip_tags ,
587
594
skip_repo_list )
588
595
589
596
# Quick check whether somebody is calling update in an empty directory
0 commit comments