1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-21 21:22:31 +03:00

makecorever.py: restore ARDUINO_ESP8266_GIT_VER even without .git/ (#8138)

fixes #8134
This commit is contained in:
david gauchard
2021-06-18 00:03:08 +02:00
committed by GitHub
parent f1310c046b
commit 7f78278969

View File

@ -31,10 +31,12 @@ def generate(path, platform_path, version="unspecified", release = False):
text = ""
git_ver = "00000000"
try:
text = "#define ARDUINO_ESP8266_GIT_VER 0x{}\n".format(git("rev-parse", "--short=8", "HEAD"))
git_ver = git("rev-parse", "--short=8", "HEAD")
except Exception:
pass
text = "#define ARDUINO_ESP8266_GIT_VER 0x{}\n".format(git_ver)
# version is
# - using Arduino-CLI: