Skip to content

Commit 7f78278

Browse files
authored
makecorever.py: restore ARDUINO_ESP8266_GIT_VER even without .git/ (#8138)
fixes #8134
1 parent f1310c0 commit 7f78278

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/makecorever.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ def git(*args):
3131

3232
text = ""
3333

34+
git_ver = "00000000"
3435
try:
35-
text = "#define ARDUINO_ESP8266_GIT_VER 0x{}\n".format(git("rev-parse", "--short=8", "HEAD"))
36+
git_ver = git("rev-parse", "--short=8", "HEAD")
3637
except Exception:
3738
pass
39+
text = "#define ARDUINO_ESP8266_GIT_VER 0x{}\n".format(git_ver)
3840

3941
# version is
4042
# - using Arduino-CLI:

0 commit comments

Comments
 (0)