summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2018-12-10 10:13:09 -0800
committerScott Shawcroft <scott@tannewt.org>2018-12-10 10:13:09 -0800
commit7da85f5a4f92604a9e3ac30a167106d73d904f0c (patch)
treee9a9b8f6aac49240c9a77479d702a1a1de47df14 /tools
parent2b739e1eb6141a58d120949b225716f28ba95f21 (diff)
Strip a newline from the version tag.
Diffstat (limited to 'tools')
-rw-r--r--tools/build_board_info.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build_board_info.py b/tools/build_board_info.py
index 908bb17e9..df43f74fc 100644
--- a/tools/build_board_info.py
+++ b/tools/build_board_info.py
@@ -65,7 +65,7 @@ def get_version_info():
version = None
sha = git("rev-parse", "--short", "HEAD").stdout.decode("utf-8")
try:
- version = git("describe", "--tags", "--exact-match").stdout.decode("utf-8")
+ version = git("describe", "--tags", "--exact-match").stdout.decode("utf-8").strip()
except sh.ErrorReturnCode_128:
# No exact match
pass