git: ignore git tags starting with 'ext/' when getting the version tag

Allows for external/extra tags
This commit is contained in:
Beat Küng
2021-02-18 13:22:36 +01:00
committed by Daniel Agar
parent ae010ea55c
commit bac2a02a65
4 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ header = """
# PX4
git_tag = subprocess.check_output('git describe --always --tags --dirty'.split(),
git_tag = subprocess.check_output('git describe --exclude ext/* --always --tags --dirty'.split(),
stderr=subprocess.STDOUT).decode('utf-8').strip()
if validate:
if verbose: