Skip to content
Snippets Groups Projects
Commit e6d996b6 authored by legac's avatar legac
Browse files

Use annotated tag instead of simple tag in order to ease the finding of

the version number using git describe.
parent f3b044ea
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment