summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2018-12-10 13:55:42 -0500
committerGitHub <noreply@github.com>2018-12-10 13:55:42 -0500
commit21e29283138a059cb2e27f136db611824652ece6 (patch)
treee9a9b8f6aac49240c9a77479d702a1a1de47df14
parent2b739e1eb6141a58d120949b225716f28ba95f21 (diff)
parent7da85f5a4f92604a9e3ac30a167106d73d904f0c (diff)
Merge pull request #1392 from tannewt/strip_version
Strip a newline from the version tag.
-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