Update tests/ci/version_helper.py

Co-authored-by: Mikhail f. Shiryaev <felixoid@clickhouse.com>
This commit is contained in:
alesapin 2021-11-25 16:25:09 +03:00 committed by GitHub
parent 3d811aeec1
commit a911e65b34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: