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> -<%def name="breadcrumbs_links()"> - ${_('New Gist')} -%def> +<%def name="breadcrumbs_links()">%def> <%def name="menu_bar_nav()"> ${self.menu_items(active='gists')} @@ -20,46 +18,47 @@