aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2012-11-29 21:35:59 +0100
committerMarcin Kuzminski <marcin@python-works.com>2012-11-29 21:35:59 +0100
commite284ced22259ea9f3bb2d939902985f4fde2105f (patch)
treeb881017f32fe095635a291c3e74957ef75d34c9a
parent8cdb1d9ea1398e688346eaabd9c0e700d759411c (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.py6
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