code: small cleanups of code
This commit is contained in:
parent
382b0cf748
commit
60f05e27cd
2 changed files with 2 additions and 4 deletions
|
|
@ -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):
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue