Skip to content

Commit

Permalink
Update build_board_info.py to sh module 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Neradoc committed Feb 10, 2023
1 parent 795e46c commit 1e99a5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/build_board_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def get_languages(list_all=False):

def get_version_info():
version = None
sha = git("rev-parse", "--short", "HEAD").stdout.decode("utf-8")
sha = git("rev-parse", "--short", "HEAD").strip()
try:
version = git("describe", "--tags", "--exact-match").stdout.decode("utf-8").strip()
version = git("describe", "--tags", "--exact-match").strip()
except sh.ErrorReturnCode_128:
# No exact match
pass
Expand Down

0 comments on commit 1e99a5a

Please sign in to comment.