git: ignore git tags starting with 'ext/' when getting the version tag

Allows for external/extra tags
This commit is contained in:
Beat Küng
2021-03-24 10:08:41 -04:00
committed by Daniel Agar
parent ae010ea55c
commit bac2a02a65
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -99,7 +99,7 @@ if args.summary != None:
if args.description != None:
desc['description'] = str(args.description)
if args.git_identity != None:
cmd = "git --git-dir '{:}/.git' describe --always --tags".format(args.git_identity)
cmd = "git --git-dir '{:}/.git' describe --exclude ext/* --always --tags".format(args.git_identity)
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE).stdout
desc['git_identity'] = str(p.read().strip())
p.close()