mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Update tests/ci/version_helper.py
Co-authored-by: Mikhail f. Shiryaev <felixoid@clickhouse.com>
This commit is contained in:
parent
3d811aeec1
commit
a911e65b34
@ -70,7 +70,7 @@ def get_tweak_from_git_describe(repo_path):
|
|||||||
# something like v21.12.1.8816-testing-358-g81942b8128
|
# something like v21.12.1.8816-testing-358-g81942b8128
|
||||||
# or v21.11.4.14-stable-31-gd6aab025e0
|
# or v21.11.4.14-stable-31-gd6aab025e0
|
||||||
output = subprocess.check_output(f"cd {repo_path} && git describe --long", shell=True).decode('utf-8')
|
output = subprocess.check_output(f"cd {repo_path} && git describe --long", shell=True).decode('utf-8')
|
||||||
commits_number = int(output.split('-')[2])
|
commits_number = int(output.split('-')[-2])
|
||||||
# for testing releases we have to also add fourth number of
|
# for testing releases we have to also add fourth number of
|
||||||
# the previous tag
|
# the previous tag
|
||||||
if 'testing' in output:
|
if 'testing' in output:
|
||||||
|
Loading…
Reference in New Issue
Block a user