Commit d4ec483f authored by Michal Čihař's avatar Michal Čihař

Commit pending changes before explicit push (issue #53)

parent ed7bb247
......@@ -428,6 +428,9 @@ class SubProject(models.Model):
messages.error(request, _('Push is disabled for %s.') % self.__unicode__())
return False
# Commit any pending changes
self.commit_pending()
# Do we have anything to push?
if not self.git_needs_push():
return False
......
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