mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Use suffix from git tags as version descriptions
This commit is contained in:
parent
6fc73e0e1f
commit
1afc5b7e05
@ -245,8 +245,10 @@ def get_version_from_string(
|
||||
|
||||
def get_version_from_tag(tag: str) -> ClickHouseVersion:
|
||||
Git.check_tag(tag)
|
||||
tag = tag[1:].split("-")[0]
|
||||
return get_version_from_string(tag)
|
||||
tag, description = tag[1:].split("-", 1)
|
||||
version = get_version_from_string(tag)
|
||||
version.with_description(description)
|
||||
return version
|
||||
|
||||
|
||||
def version_arg(version: str) -> ClickHouseVersion:
|
||||
|
Loading…
Reference in New Issue
Block a user