Skip to content

Commit 1e99a5a

Browse files
committed
Update build_board_info.py to sh module 2.0.0
1 parent 795e46c commit 1e99a5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/build_board_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def get_languages(list_all=False):
5858

5959
def get_version_info():
6060
version = None
61-
sha = git("rev-parse", "--short", "HEAD").stdout.decode("utf-8")
61+
sha = git("rev-parse", "--short", "HEAD").strip()
6262
try:
63-
version = git("describe", "--tags", "--exact-match").stdout.decode("utf-8").strip()
63+
version = git("describe", "--tags", "--exact-match").strip()
6464
except sh.ErrorReturnCode_128:
6565
# No exact match
6666
pass

0 commit comments

Comments
 (0)