code: small cleanups of code

This commit is contained in:
Marcin Kuzminski 2018-05-14 14:22:41 +02:00
parent 382b0cf748
commit 60f05e27cd
2 changed files with 2 additions and 4 deletions

View file

@ -80,10 +80,7 @@ class RepoFilesView(RepoAppView):
def load_default_context(self):
c = self._get_local_tmpl_context(include_app_defaults=True)
c.rhodecode_repo = self.rhodecode_vcs_repo
return c
def _ensure_not_locked(self):

View file

@ -242,6 +242,7 @@ class RepoSettingsView(RepoAppView):
_ = self.request.translate
self.load_default_context()
self.rhodecode_vcs_repo.install_hooks(force=True)
h.flash(_('installed hooks repository'), category='success')
h.flash(_('installed updated hooks into this repository'),
category='success')
raise HTTPFound(
h.route_path('edit_repo_advanced', repo_name=self.db_repo_name))