Skip to content

Commit d934f8c

Browse files
committed
py/makeversionhdr: Add --tags arg to git describe.
This adds the --tags argument to the git describe command that is used to define the MICROPY_GIT_TAG macro. This makes it match non-annotated tags. This is useful for MicroPython derivatives that don't use annotated tags. Signed-off-by: David Lechner <[email protected]>
1 parent 3966f67 commit d934f8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/makeversionhdr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def get_version_info_from_git():
2323
# Note: git describe doesn't work if no tag is available
2424
try:
2525
git_tag = subprocess.check_output(
26-
["git", "describe", "--dirty", "--always", "--match", "v[1-9].*"],
26+
["git", "describe", "--tags", "--dirty", "--always", "--match", "v[1-9].*"],
2727
stderr=subprocess.STDOUT,
2828
universal_newlines=True,
2929
).strip()

0 commit comments

Comments
 (0)