@@ -75,6 +75,7 @@ def check_parallel_results(results, op):
75
75
76
76
77
77
def confirm_tag_in_repo (tag , repo_name ):
78
+ # type: (str, str) -> str | None
78
79
"""Confirm that a given tag exists in a git repository. This function
79
80
assumes that the repository is already a current working directory before
80
81
it's called.
@@ -84,7 +85,8 @@ def confirm_tag_in_repo(tag, repo_name):
84
85
repo_name (str): name the repository for the look up, used for logging
85
86
86
87
Returns:
87
- str: returns `tag` argument value or `None` if the tag doesn't exist.
88
+ str | None: returns `tag` argument value or `None` if the tag doesn't
89
+ exist.
88
90
"""
89
91
90
92
tag_exists = shell .capture (['git' , 'ls-remote' , '--tags' ,
@@ -280,7 +282,7 @@ def get_timestamp_to_match(match_timestamp, source_root):
280
282
str | None: a timestamp of the last commit of `swift` repository if
281
283
`match_timestamp` argument has a value, `None` if `match_timestamp` is
282
284
falsy.
283
- """
285
+ """
284
286
if not match_timestamp :
285
287
return None
286
288
with shell .pushd (os .path .join (source_root , "swift" ),
@@ -687,6 +689,7 @@ def main():
687
689
scheme_map = get_scheme_map (config , scheme_name )
688
690
689
691
clone_results = None
692
+ skip_repo_list = []
690
693
if clone or clone_with_ssh :
691
694
skip_repo_list = skip_list_for_platform (config , all_repos )
692
695
skip_repo_list .extend (args .skip_repository_list )
@@ -698,7 +701,7 @@ def main():
698
701
skip_repo_list )
699
702
700
703
swift_repo_path = os .path .join (args .source_root , 'swift' )
701
- if not 'swift' in skip_repo_list and os .path .exists (swift_repo_path ):
704
+ if 'swift' not in skip_repo_list and os .path .exists (swift_repo_path ):
702
705
with shell .pushd (swift_repo_path , dry_run = False , echo = True ):
703
706
# Check if `swift` repo itself needs to switch to a cross-repo branch.
704
707
branch_name , cross_repo = get_branch_for_repo (config , 'swift' ,
0 commit comments