# HG changeset patch # User Marcin Kuzminski # Date 2012-11-29 20:35:59 # Node ID be781af446af78839e4c35102a03bc78632367fc # Parent b81680c97494a0de4ec869d25daeee578b972f83 bring back cached Repo() instance due to some other issues it generated diff --git a/rhodecode/lib/vcs/backends/git/repository.py b/rhodecode/lib/vcs/backends/git/repository.py --- a/rhodecode/lib/vcs/backends/git/repository.py +++ b/rhodecode/lib/vcs/backends/git/repository.py @@ -58,12 +58,12 @@ class GitRepository(BaseRepository): self.bare = repo.bare self._config_files = [ - bare and abspath(self.path, 'config') or abspath(self.path, '.git', - 'config'), + bare and abspath(self.path, 'config') + or abspath(self.path, '.git', 'config'), abspath(get_user_home(), '.gitconfig'), ] - @property + @LazyProperty def _repo(self): repo = Repo(self.path) #temporary set that to now at later we will move it to constructor