# HG changeset patch # User Marcin Kuzminski # Date 2012-06-23 09:43:07 # Node ID 9374eecac156191418a40012b615b9341984d43c # Parent 044c31d67ccc698b18e3678334730971b81890f5 fix pygrack call on non-bare repos diff --git a/rhodecode/lib/middleware/pygrack.py b/rhodecode/lib/middleware/pygrack.py --- a/rhodecode/lib/middleware/pygrack.py +++ b/rhodecode/lib/middleware/pygrack.py @@ -189,7 +189,8 @@ class GitDirectory(object): except (AssertionError, OSError): if os.path.isdir(os.path.join(content_path, '.git')): app = GitRepository(self.repo_name, - os.path.join(content_path, '.git')) + os.path.join(content_path, '.git'), + self.username) else: return exc.HTTPNotFound()(environ, start_response, self.username) return app(environ, start_response)