1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-04 18:29:19 +02:00

this seems to be needed for git describe to ignore "py" tags which relate to python bindings not core

This commit is contained in:
holger krekel 2018-10-04 22:10:30 +02:00
parent 41c4f1c911
commit f8019af4f6

View file

@ -15,7 +15,7 @@ project(
version = meson.project_version()
git = find_program('git', required: false)
if git.found()
git_desc = run_command(git, 'describe', '--tags')
git_desc = run_command(git, 'describe', '--tags', '--match=v*')
if git_desc.returncode() == 0
git_desc_parts = git_desc.stdout().strip().split('-')
version = git_desc_parts[0].split('v')[1]