From: Carl Hetherington Date: Tue, 30 Apr 2024 12:11:30 +0000 (+0200) Subject: Fix tag -> version conversion. X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=38d84a3f65f98c20f98fc004b72034ad3dada79c;p=cdist.git Fix tag -> version conversion. --- diff --git a/cdist b/cdist index 06bfb4e..8336059 100755 --- a/cdist +++ b/cdist @@ -1016,7 +1016,7 @@ class Tree: head_tag = command_and_read(f'git -C {proj} tag -l --points-at HEAD') if head_tag: - self.version = head_tag[0] + self.version = head_tag[0][1:] else: self.version = command_and_read(f'git -C {proj} rev-parse --short HEAD')[0]