Merge pull request #1392 from tannewt/strip_version

Strip a newline from the version tag.
This commit is contained in:
Dan Halbert 2018-12-10 13:55:42 -05:00 committed by GitHub
commit 21e2928313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ def get_version_info():
version = None version = None
sha = git("rev-parse", "--short", "HEAD").stdout.decode("utf-8") sha = git("rev-parse", "--short", "HEAD").stdout.decode("utf-8")
try: 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: except sh.ErrorReturnCode_128:
# No exact match # No exact match
pass pass