We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9adaf98 + 71a023c commit 1c61e57Copy full SHA for 1c61e57
py/version.py
@@ -9,15 +9,17 @@ def get_version_info_from_git(repo_path, extra_args=[]):
9
# Note: git describe doesn't work if no tag is available
10
try:
11
git_tag = subprocess.check_output(
12
- # CIRCUITPY-CHANGE
+ # CIRCUITPY-CHANGE: Ignore MicroPython tags that start with v.
13
+ # Also ignore tags that are on merged in branches.
14
[
15
"git",
16
"describe",
17
"--dirty",
18
"--tags",
19
"--always",
20
+ "--first-parent",
21
"--match",
- "[1-9].*",
22
+ "[!v]*", # This is a glob, not a regex
23
*extra_args,
24
],
25
cwd=repo_path,
0 commit comments