update_manager: relax semantic tag requirement
Allow tags versions with one, two, or three parts. The following examples are now valid: v1 v1.3 v1.0,10 Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
90c7b80f37
commit
4ff7a50821
|
@ -264,7 +264,7 @@ GIT_REF_FMT = (
|
|||
)
|
||||
|
||||
class GitRepo:
|
||||
tag_r = re.compile(r"(v?\d+\.\d+\.\d+(-(alpha|beta)(\.\d+)?)?)(-\d+)?")
|
||||
tag_r = re.compile(r"(v?\d+(?:\.\d+){0,2}(-(alpha|beta)(\.\d+)?)?)(-\d+)?")
|
||||
def __init__(self,
|
||||
cmd_helper: CommandHelper,
|
||||
git_path: pathlib.Path,
|
||||
|
|
Loading…
Reference in New Issue