diff options
| author | cah <cah@ableton.com> | 2021-11-12 15:06:22 +0100 |
|---|---|---|
| committer | cah <cah@ableton.com> | 2021-11-12 15:06:22 +0100 |
| commit | e73f084d7f776db60ea3904f4b7b6dc73621d1ee (patch) | |
| tree | d76373d76c20574c7be62121d2bc38307c03f9d2 | |
| parent | bfd2cef32407249761240c1cb22114075f087484 (diff) | |
Match only tags that start with v when looking for versions.
| -rwxr-xr-x | cdist | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
