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:
@ -31,10 +31,12 @@ def generate(path, platform_path, version="unspecified", release = False):
|
|||||||
|
|
||||||
text = ""
|
text = ""
|
||||||
|
|
||||||
|
git_ver = "00000000"
|
||||||
try:
|
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:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
|
text = "#define ARDUINO_ESP8266_GIT_VER 0x{}\n".format(git_ver)
|
||||||
|
|
||||||
# version is
|
# version is
|
||||||
# - using Arduino-CLI:
|
# - using Arduino-CLI:
|
||||||
|
Reference in New Issue
Block a user