Log about commiting

This commit is contained in:
Michal Čihař 2012-02-28 14:29:24 +01:00
parent e36ca7363c
commit 9becb305c0

View File

@ -227,9 +227,11 @@ class Translation(models.Model):
Commits translation to git.
'''
repo = self.subproject.get_repo()
author = '%s <%s>' % (request.user.get_full_name(), request.user.email)
logger.info('Commiting %s as %s', self.filename, author)
repo.git.commit(
self.filename,
author = '%s <%s>' % (request.user.get_full_name(), request.user.email),
author = author,
m = 'Translated using Weblate'
)