From 1e380a75dd4e87f8f0474b4d0899708eba006480 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 12 Nov 2021 13:23:01 +0100 Subject: [PATCH] Only look for tags which start with v --- wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wscript b/wscript index da1378cc4..cfc47d6cc 100644 --- a/wscript +++ b/wscript @@ -39,7 +39,7 @@ libdcp_version = '1.8.5' libsub_version = '1.6.5' this_version = subprocess.Popen(shlex.split('git tag -l --points-at HEAD'), stdout=subprocess.PIPE).communicate()[0] -last_version = subprocess.Popen(shlex.split('git describe --tags --abbrev=0'), stdout=subprocess.PIPE).communicate()[0] +last_version = subprocess.Popen(shlex.split('git describe --tags --match v* --abbrev=0'), stdout=subprocess.PIPE).communicate()[0] # Python 2/3 compatibility; I don't really understand what's going on here if not isinstance(this_version, str): -- 2.30.2