Tools/px_mkfw.py: use the same args to get the git version as px_update_git_header.py

This commit is contained in:
Beat Küng
2017-03-07 23:55:37 +08:00
committed by Lorenz Meier
parent d67b6efda3
commit 561a5c5422
+1 -1
View File
@@ -98,7 +98,7 @@ if args.summary != None:
if args.description != None:
desc['description'] = str(args.description)
if args.git_identity != None:
cmd = " ".join(["git", "--git-dir", args.git_identity + "/.git", "describe", "--always", "--dirty"])
cmd = " ".join(["git", "--git-dir", args.git_identity + "/.git", "describe", "--always", "--tags"])
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE).stdout
desc['git_identity'] = str(p.read().strip())
p.close()