8000 py/makeversionhdr.py: Use any tag to describe the version. · cpforbes/circuitpython@c69ea1a · GitHub
[go: up one dir, main page]

8000
Skip to content

Commit c69ea1a

Browse files
committed
py/makeversionhdr.py: Use any tag to describe the version.
1 parent 8677f95 commit c69ea1a

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
@@ -21,7 +21,7 @@ def get_version_info_from_git():
2121

2222
# Note: git describe doesn't work if no tag is available
2323
try:
24-
git_tag = subprocess.check_output(["git", "describe", "--dirty", "--always"], stderr=subprocess.STDOUT, universal_newlines=True).strip()
24+
git_tag = subprocess.check_output(["git", "describe", "--dirty", "--always", "--tags"], stderr=subprocess.STDOUT, universal_newlines=True).strip()
2525
except subprocess.CalledProcessError as er:
2626
if er.returncode == 128:
2727
# git exit code of 128 means no repository found

0 commit comments

Comments
 (0)
0