From bff9b45c26832815eb3086a80e25fae151ccc7a2 Mon Sep 17 00:00:00 2001 From: Terrtia Date: Mon, 25 Nov 2019 15:54:53 +0100 Subject: [PATCH] fix: [Update] filter invalid tags --- bin/Update.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/Update.py b/bin/Update.py index 72ab1009..9e02d571 100755 --- a/bin/Update.py +++ b/bin/Update.py @@ -176,6 +176,12 @@ def get_git_upper_tags_remote(current_tag, is_fork): for mess_tag in list_all_tags: commit, tag = mess_tag.split('\trefs/tags/') + # check if tag is float + try: + float(tag.split('^{}')[0][1:]) + except ValueError: + continue + # add tag with last commit if float(tag.split('^{}')[0][1:]) >= float(current_tag): if '^{}' in tag: