Mercurial > kallithea
changeset 3046:be781af446af beta
bring back cached Repo() instance due to some other issues it generated
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 29 Nov 2012 21:35:59 +0100 |
parents | b81680c97494 |
children | 3b3de7c68ae1 |
files | rhodecode/lib/vcs/backends/git/repository.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/vcs/backends/git/repository.py Thu Nov 29 21:35:08 2012 +0100 +++ b/rhodecode/lib/vcs/backends/git/repository.py Thu Nov 29 21:35:59 2012 +0100 @@ -58,12 +58,12 @@ 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