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

Update translations on reset

parent beed675b
......@@ -521,7 +521,6 @@ class SubProject(models.Model):
try:
logger.info('reseting to remote repo %s', self.__unicode__())
gitrepo.git.reset('--hard', 'origin/%s' % self.branch)
return True
except Exception, e:
logger.warning('failed reset on repo %s', self.__unicode__())
msg = 'Error:\n%s' % str(e)
......@@ -533,6 +532,11 @@ class SubProject(models.Model):
messages.error(request, _('Failed to reset to remote branch on %s.') % self.__unicode__())
return False
# create translation objects for all files
self.create_translations()
return True
def get_linked_childs(self):
'''
Returns list of subprojects which link repository to us.
......
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