diff --git a/rhodecode/lib/vcs/backends/base.py b/rhodecode/lib/vcs/backends/base.py --- a/rhodecode/lib/vcs/backends/base.py +++ b/rhodecode/lib/vcs/backends/base.py @@ -432,8 +432,10 @@ class BaseRepository(object): def append_commit_id(self, commit_id): if commit_id not in self.commit_ids: self._rebuild_cache(self.commit_ids + [commit_id]) - # clear cache - self._invalidate_prop_cache('commit_ids') + + # clear cache + self._invalidate_prop_cache('commit_ids') + self._is_empty = False def get_commit(self, commit_id=None, commit_idx=None, pre_load=None, translate_tag=None): """ diff --git a/rhodecode/model/repo.py b/rhodecode/model/repo.py --- a/rhodecode/model/repo.py +++ b/rhodecode/model/repo.py @@ -824,7 +824,7 @@ class RepoModel(BaseModel): def _create_filesystem_repo(self, repo_name, repo_type, repo_group, clone_uri=None, repo_store_location=None, - use_global_config=False): + use_global_config=False, install_hooks=True): """ makes repository on filesystem. It's group aware means it'll create a repository within a group, and alter the paths accordingly of @@ -890,7 +890,8 @@ class RepoModel(BaseModel): repo_path, config=config, create=True, src_url=clone_uri, with_wire={"cache": False}) - repo.install_hooks() + if install_hooks: + repo.install_hooks() log.debug('Created repo %s with %s backend', safe_unicode(repo_name), safe_unicode(repo_type)) diff --git a/rhodecode/templates/admin/gists/new.mako b/rhodecode/templates/admin/gists/new.mako --- a/rhodecode/templates/admin/gists/new.mako +++ b/rhodecode/templates/admin/gists/new.mako @@ -8,9 +8,7 @@ %endif -<%def name="breadcrumbs_links()"> - ${_('New Gist')} - +<%def name="breadcrumbs_links()"> <%def name="menu_bar_nav()"> ${self.menu_items(active='gists')} @@ -20,46 +18,47 @@
- ${self.breadcrumbs()} +
${h.secure_form(h.route_path('gists_create'), id='eform', request=request)}
- - ${self.gravatar(c.rhodecode_user.email, 30)} - - ${h.text('gistid', placeholder=_('Auto generated'))} + + ${h.text('gistid', placeholder=_('Auto generated'))} + + + ${h.dropdownmenu('lifetime', '', c.lifetime_options)} - - ${h.dropdownmenu('lifetime', '', c.lifetime_options)} + + ${h.dropdownmenu('gist_acl_level', '', c.acl_options)} - - ${h.dropdownmenu('gist_acl_level', '', c.acl_options)} + +
-
- ${h.text('filename', size=30, placeholder=_('name this file...'))} + ${h.text('filename', size=30, placeholder=_('name gist file...'))} ${h.dropdownmenu('mimetype','plain',[('plain',_('plain'))],enable_filter=True)}
+
+
${h.submit('private',_('Create Private Gist'),class_="btn")} ${h.submit('public',_('Create Public Gist'),class_="btn")} - ${h.reset('reset',_('Reset'),class_="btn")}
${h.end_form()}