From f9fc57288444b270269ce1d73679a810b65ecc94 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 23 Apr 2020 13:32:57 +0200 Subject: bin/semver: add --tags to git-describe call --- bin/semver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/semver') 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(".") -- cgit 1.4.1