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

Flush commits before trying to update git

parent 4c688ce6
......@@ -151,6 +151,13 @@ class SubProject(models.Model):
gitrepo.git.checkout(self.branch)
del gitrepo
def check_commit_needed(self):
'''
Checks whether there is any translation which needs commit.
'''
for translation in self.translation_set.all():
translation.check_commit_needed(None)
def update_branch(self):
'''
Updates current branch to match remote (if possible).
......
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