From e6d996b6d2bd17d43bb6fb8be79bd53998f78583 Mon Sep 17 00:00:00 2001 From: legac <renaud.legac@free.fr> Date: Sat, 7 Jul 2012 11:36:59 +0200 Subject: [PATCH] Use annotated tag instead of simple tag in order to ease the finding of the version number using git describe. --- buildVersion.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/buildVersion.py b/buildVersion.py index 27fbd4eb..3cf234ce 100755 --- a/buildVersion.py +++ b/buildVersion.py @@ -92,18 +92,22 @@ def git(): if version in fi.read(): print "\n\ttag %s already exit in git" % version sys.exit(1) - + + # release message + m = "Release version %s" % version + # Commit the new release in git an tag it print 'git add', JSBASE, CHANGELOG cmd = ["git", "add", JSBASE, CHANGELOG] subprocess.call(cmd) print 'git commit' - cmd = ["git", "commit", "-m", "Release version %s" % version] + cmd = ["git", "commit", "-m", m] subprocess.call(cmd) + # annotated tag print 'git tag', version - cmd = ["git", "tag", version] + cmd = ["git", "tag", "-a", version, "-m", m] subprocess.call(cmd) -- GitLab