Merge pull request #1392 from tannewt/strip_version
Strip a newline from the version tag.
This commit is contained in:
commit
21e2928313
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user