diff options
author | Marcin Kuzminski <marcin@python-works.com> | 2012-11-29 21:35:59 +0100 |
---|---|---|
committer | Marcin Kuzminski <marcin@python-works.com> | 2012-11-29 21:35:59 +0100 |
commit | e284ced22259ea9f3bb2d939902985f4fde2105f (patch) | |
tree | b881017f32fe095635a291c3e74957ef75d34c9a | |
parent | 8cdb1d9ea1398e688346eaabd9c0e700d759411c (diff) |
bring back cached Repo() instance due to some other issues it generated
--HG--
branch : beta
-rw-r--r-- | rhodecode/lib/vcs/backends/git/repository.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rhodecode/lib/vcs/backends/git/repository.py b/rhodecode/lib/vcs/backends/git/repository.py index 228b2e82..e4f6e0b0 100644 --- 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 |