Skip to content

Commit 9eb530f

Browse files
authored
Merge pull request #7190 from erg/fix-update-checkout-tags
utils/update-checkout: Handle missing repository/tag combinations.
2 parents b82c141 + 309312d commit 9eb530f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

utils/update-checkout

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ def update_repository_to_tag(args, repo_name, repo_path, tag_name):
9191
tag_exists = shell.capture(['git', 'ls-remote', '--tags',
9292
'origin', tag_name], echo=False)
9393
if not tag_exists:
94-
print("Skipping tagging of '" + repo_name + "', tag does not exist")
95-
return
94+
print("Tag '" + tag_name + "' does not exist for '"
95+
+ repo_name + "', just updating regularly")
96+
tag_name = None
97+
9698
return [repo_path,
9799
tag_name,
98100
args.reset_to_remote,

0 commit comments

Comments
 (0)