Mercurial > kallithea
changeset 2764:c7a27b04ce58 beta
fixed #545, exception during cloning of non-bare repositories
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 31 Aug 2012 14:48:38 +0200 |
parents | 81624c8a1035 |
children | 186b1cf7f759 |
files | rhodecode/lib/middleware/pygrack.py |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/middleware/pygrack.py Thu Aug 30 19:35:32 2012 +0200 +++ b/rhodecode/lib/middleware/pygrack.py Fri Aug 31 14:48:38 2012 +0200 @@ -188,10 +188,9 @@ try: app = GitRepository(self.repo_name, content_path, self.extras) except (AssertionError, OSError): - if os.path.isdir(os.path.join(content_path, '.git')): - app = GitRepository(self.repo_name, - os.path.join(content_path, '.git'), - self.username) + content_path = os.path.join(content_path, '.git') + if os.path.isdir(content_path): + app = GitRepository(self.repo_name, content_path, self.extras) else: return exc.HTTPNotFound()(environ, start_response) return app(environ, start_response)