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.
1 parent 795e46c commit 1e99a5aCopy full SHA for 1e99a5a
tools/build_board_info.py
@@ -58,9 +58,9 @@ def get_languages(list_all=False):
58
59
def get_version_info():
60
version = None
61
- sha = git("rev-parse", "--short", "HEAD").stdout.decode("utf-8")
+ sha = git("rev-parse", "--short", "HEAD").strip()
62
try:
63
- version = git("describe", "--tags", "--exact-match").stdout.decode("utf-8").strip()
+ version = git("describe", "--tags", "--exact-match").strip()
64
except sh.ErrorReturnCode_128:
65
# No exact match
66
pass
0 commit comments