Add --tags so we see 'normal' tags.
authorCarl Hetherington <cth@carlh.net>
Sun, 25 Mar 2018 01:39:33 +0000 (02:39 +0100)
committerCarl Hetherington <cth@carlh.net>
Sun, 25 Mar 2018 01:39:33 +0000 (02:39 +0100)
cdist

diff --git a/cdist b/cdist
index 6c7847232f430aa1e596629a35b8b306931a351d..fece7574c1dc87896094d0c5f06d0adb6e459b72 100755 (executable)
--- a/cdist
+++ b/cdist
@@ -745,7 +745,7 @@ class Tree(object):
                 try:
                     self.version = Version(v)
                 except:
-                    self.version = Version(subprocess.Popen(shlex.split('git -C %s describe --abbrev=0' % proj), stdout=subprocess.PIPE).communicate()[0][1:])
+                    self.version = Version(subprocess.Popen(shlex.split('git -C %s describe --tags --abbrev=0' % proj), stdout=subprocess.PIPE).communicate()[0][1:])
 
         os.chdir(cwd)