From b95dadd177fd8cce5ff1ac8a37cb1578be6e225d Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Tue, 26 Dec 2017 13:33:19 -0800 Subject: [PATCH] Fix common case. --- circuitpython_build_tools/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circuitpython_build_tools/build.py b/circuitpython_build_tools/build.py index aa4a2a1..9f977b4 100644 --- a/circuitpython_build_tools/build.py +++ b/circuitpython_build_tools/build.py @@ -41,7 +41,7 @@ def version_string(path=None, *, valid_semver=False): describe = subprocess.run("git describe --tags --always", shell=True, stdout=subprocess.PIPE, cwd=path) describe = describe.stdout.strip().decode("utf-8", "strict").rsplit("-", maxsplit=2) if len(describe) == 3: - tag, additional_commits, commitish = describe.stdout.strip().decode("utf-8", "strict").rsplit("-", maxsplit=2) + tag, additional_commits, commitish = describe commitish = commitish[1:] else: tag = "0.0.0"