mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-07 20:00:53 +00:00
build system: Also get IDF version from annotated tags only
Builds on previous commit. Note: Getting the project version still pases --tags so still works with plain tags, to keep compatibility for existing projects
This commit is contained in:
@@ -843,7 +843,7 @@ def get_python_env_path():
|
||||
idf_version_str = version_file.read()
|
||||
else:
|
||||
try:
|
||||
idf_version_str = subprocess.check_output(['git', 'describe', '--tags'],
|
||||
idf_version_str = subprocess.check_output(['git', 'describe'],
|
||||
cwd=global_idf_path, env=os.environ).decode()
|
||||
except subprocess.CalledProcessError as e:
|
||||
warn('Git describe was unsuccessul: {}'.format(e))
|
||||
|
Reference in New Issue
Block a user