contrib/release/py: fix the 'v' character in commit message

Signed-off-by: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
This commit is contained in:
Nicolas Sebrecht 2017-10-08 16:20:59 +02:00
parent e1a6feb2d5
commit 0d65762168
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ class Git(object):
@staticmethod @staticmethod
def commit(msg): def commit(msg):
cmd = shlex.split("git commit -s -m 'v{}'".format(msg)) cmd = shlex.split("git commit -s -m '{}'".format(msg))
return run(cmd).decode(ENCODING) return run(cmd).decode(ENCODING)
@staticmethod @staticmethod

View File

@ -394,7 +394,7 @@ class Release(object):
def make(self): def make(self):
Git.add('offlineimap/__init__.py') Git.add('offlineimap/__init__.py')
Git.add('Changelog.md') Git.add('Changelog.md')
commitMsg = "{}\n".format(newVersion) commitMsg = "v{}\n".format(newVersion)
for tester in self.testers.getListOk(): for tester in self.testers.getListOk():
commitMsg = "{}\nTested-by: {} {}".format( commitMsg = "{}\nTested-by: {} {}".format(
commitMsg, tester.getName(), tester.getEmail() commitMsg, tester.getName(), tester.getEmail()