Show More
@@ -188,10 +188,9 b' class GitDirectory(object):' | |||||
188 | try: |
|
188 | try: | |
189 | app = GitRepository(self.repo_name, content_path, self.extras) |
|
189 | app = GitRepository(self.repo_name, content_path, self.extras) | |
190 | except (AssertionError, OSError): |
|
190 | except (AssertionError, OSError): | |
191 |
|
|
191 | content_path = os.path.join(content_path, '.git') | |
192 | app = GitRepository(self.repo_name, |
|
192 | if os.path.isdir(content_path): | |
193 | os.path.join(content_path, '.git'), |
|
193 | app = GitRepository(self.repo_name, content_path, self.extras) | |
194 | self.username) |
|
|||
195 | else: |
|
194 | else: | |
196 | return exc.HTTPNotFound()(environ, start_response) |
|
195 | return exc.HTTPNotFound()(environ, start_response) | |
197 | return app(environ, start_response) |
|
196 | return app(environ, start_response) |
General Comments 0
You need to be logged in to leave comments.
Login now