# HG changeset patch # User Marcin Kuzminski # Date 1346417318 -7200 # Node ID c7a27b04ce581ecd4880ed0ea351d9887845e17c # Parent 81624c8a103501494dda834d2d058ab35a02cd0d fixed #545, exception during cloning of non-bare repositories diff -r 81624c8a1035 -r c7a27b04ce58 rhodecode/lib/middleware/pygrack.py --- 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)