File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -185,6 +185,11 @@ def __init__(self):
185
185
for branch in self .g .ls_remote (REMOTE_URL ).split ("\n " )
186
186
if "heads/release" in branch
187
187
]
188
+ repo = git .Repo (os .getcwd (), search_parent_directories = True )
189
+ current_commit = repo .head .commit
190
+ self .tags_for_current_commit = [
191
+ tag .name for tag in repo .tags if tag .commit == current_commit
192
+ ]
188
193
189
194
def has_release_for_tag_name (self , tag_name ):
190
195
return (
@@ -448,7 +453,10 @@ def install_latest_lts_for_branch(
448
453
(
449
454
tag
450
455
for tag in self .tags
451
- if get_version_from_tag_name (tag ) >= Version ("6.0.0.dev0" )
456
+ if (
457
+ get_version_from_tag_name (tag ) >= Version ("6.0.0.dev0" )
458
+ and tag not in self .g .tags_for_current_commit
459
+ )
452
460
),
453
461
key = get_version_from_tag_name ,
454
462
reverse = True ,
You can’t perform that action at this time.
0 commit comments