pass shell environment to mercurial cgi process

This commit is contained in:
Sebastian Sdorra
2012-05-24 08:11:42 +02:00
parent cac2f69c89
commit e8bbcd91b5
2 changed files with 7 additions and 5 deletions

View File

@@ -271,6 +271,8 @@ public class HgCGIServlet extends HttpServlet
CGIExecutor executor = cgiExecutorFactory.createExecutor(configuration,
getServletContext(), request, response);
// issue #155
executor.setPassShellEnvironment(true);
executor.setExceptionHandler(exceptionHandler);
executor.setStatusCodeHandler(exceptionHandler);
executor.setContentLengthWorkaround(true);