Open commit message file in write mode

This commit is contained in:
Alexander van Gessel 2011-12-04 02:02:18 +01:00
parent 6de351ff0e
commit 172decc603

View file

@ -89,7 +89,7 @@ class Addon(object):
logging.debug("Committing and pushing add-on {0}".format(self.name))
tmpname = os.tmpnam()
tmpfile = open(tmpname)
tmpfile = open(tmpname, "w")
tmpfile.write(message)
tmpfile.close()
self._execute(["git", "commit", "-F", tmpname], check_error=True)