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

Emit update signal on every update

The signal should be fired regardless update method we choose and also
on initial project import.

Issue #790
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent ea344e71
......@@ -691,9 +691,6 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
# update remote branch
ret = self.update_branch(request, method=method)
# run post update hook
vcs_post_update.send(sender=self.__class__, component=self)
# create translation objects for all files
self.create_translations(request=request)
......@@ -879,6 +876,9 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
user=request.user if request else None,
action=action,
)
# run post update hook
vcs_post_update.send(sender=self.__class__, component=self)
return True
except RepositoryException as error:
# In case merge has failer recover
......
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