Commit 68d249b8 authored by Michal Čihař's avatar Michal Čihař

Use new shared code for optional commit

Issue #861
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 592b2b50
......@@ -828,10 +828,8 @@ class Translation(models.Model, URLMixin, PercentMixin, LoggerMixin):
self.__git_commit(author, timestamp, sync)
# Push if we should
if (self.subproject.project.push_on_commit and
not skip_push and
self.can_push()):
self.subproject.do_push(request, force_commit=False)
if not skip_push:
self.subproject.push_if_needed(request)
return True
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment