makeversionhdr: Pick out a circuitpython-style tag

This commit is contained in:
Jeff Epler 2021-10-15 10:40:04 -05:00
parent 53c5bde924
commit 132107c258

View File

@ -23,7 +23,7 @@ def get_version_info_from_git():
# Note: git describe doesn't work if no tag is available
try:
git_tag = subprocess.check_output(
["git", "describe", "--tags", "--dirty", "--always", "--match", "v[1-9].*"],
["git", "describe", "--tags", "--dirty", "--always", "--match", "[1-9].*"],
stderr=subprocess.STDOUT,
universal_newlines=True,
).strip()