summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcah <cah@ableton.com>2021-11-12 15:06:22 +0100
committercah <cah@ableton.com>2021-11-12 15:06:22 +0100
commite73f084d7f776db60ea3904f4b7b6dc73621d1ee (patch)
treed76373d76c20574c7be62121d2bc38307c03f9d2
parentbfd2cef32407249761240c1cb22114075f087484 (diff)
Match only tags that start with v when looking for versions.
-rwxr-xr-xcdist2
1 files changed, 1 insertions, 1 deletions
diff --git a/cdist b/cdist
index 89aa0fa..21a9ab5 100755
--- a/cdist
+++ b/cdist
@@ -1045,7 +1045,7 @@ class Tree(object):
self.version = Version(v)
except:
try:
- tag = command_and_read('git -C %s describe --tags' % proj)[0][1:]
+ tag = command_and_read('git -C %s describe --match v* --tags' % proj)[0][1:]
self.version = Version.from_git_tag(tag)
except:
# We'll leave version as None if we can't read it; maybe this is a bad idea