summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-04-23 13:32:57 +0200
committerRobert Günzler <r@gnzler.io>2020-04-23 13:32:57 +0200
commitf9fc57288444b270269ce1d73679a810b65ecc94 (patch)
tree5410c43c29a9d34719c152b53d7bcfe0acb9df82
parent0117aa4ffd031f331cf96628af236118dff060e2 (diff)
bin/semver: add --tags to git-describe call
-rwxr-xr-xbin/semver2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/semver b/bin/semver
index a811dca..cdc993a 100755
--- a/bin/semver
+++ b/bin/semver
@@ -55,7 +55,7 @@ if subprocess.run(["git", "branch", "--show-current"],
 
 subprocess.run(["git", "pull", "--rebase"])
 
-p = subprocess.run(["git", "describe", "--abbrev=0"], stdout=subprocess.PIPE)
+p = subprocess.run(["git", "describe", "--abbrev=0", "--tags"], stdout=subprocess.PIPE)
 describe = p.stdout.decode().strip()
 # TODO also ask to re-append the trailing portion.... e.g. -rev1
 old_version = describe.split("-")[0].split(".")