Skip to content

Commit 309312d

Browse files
author
Doug Coleman
committed
utils/update-checkout: Handle missing repository/tag combinations.
Fixes https://bugs.swift.org/browse/SR-3810
1 parent 23b216b commit 309312d

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)