##// END OF EJS Templates
vcs: Add a flag to the environ to skip the error handling for responses from VCSMiddleware
Martin Bornhold -
r600:eff669b8 default
parent child Browse files
Show More
@@ -352,6 +352,12 b' class SimpleVCS(object):'
352 log.info(
352 log.info(
353 '%s action on %s repo "%s" by "%s" from %s',
353 '%s action on %s repo "%s" by "%s" from %s',
354 action, self.SCM, str_repo_name, safe_str(username), ip_addr)
354 action, self.SCM, str_repo_name, safe_str(username), ip_addr)
355
356 # Set a flag to skip error handling for VCSMiddleware responses. This
357 # prevents converting error responses to human readable error pages
358 # which otherwise confuses the command line clients.
359 environ['rhodecode.vcs.skip_error_handling'] = True
360
355 return self._generate_vcs_response(
361 return self._generate_vcs_response(
356 environ, start_response, repo_path, repo_name, extras, action)
362 environ, start_response, repo_path, repo_name, extras, action)
357
363
General Comments 0
You need to be logged in to leave comments. Login now