mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
merge with branch issue-155
This commit is contained in:
@@ -271,6 +271,8 @@ public class HgCGIServlet extends HttpServlet
|
|||||||
CGIExecutor executor = cgiExecutorFactory.createExecutor(configuration,
|
CGIExecutor executor = cgiExecutorFactory.createExecutor(configuration,
|
||||||
getServletContext(), request, response);
|
getServletContext(), request, response);
|
||||||
|
|
||||||
|
// issue #155
|
||||||
|
executor.setPassShellEnvironment(true);
|
||||||
executor.setExceptionHandler(exceptionHandler);
|
executor.setExceptionHandler(exceptionHandler);
|
||||||
executor.setStatusCodeHandler(exceptionHandler);
|
executor.setStatusCodeHandler(exceptionHandler);
|
||||||
executor.setContentLengthWorkaround(true);
|
executor.setContentLengthWorkaround(true);
|
||||||
|
|||||||
@@ -130,6 +130,11 @@ public class DefaultCGIExecutor extends AbstractCGIExecutor
|
|||||||
File command = new File(cmd);
|
File command = new File(cmd);
|
||||||
EnvList env = new EnvList(environment);
|
EnvList env = new EnvList(environment);
|
||||||
|
|
||||||
|
if (passShellEnvironment)
|
||||||
|
{
|
||||||
|
apendOsEnvironment(env);
|
||||||
|
}
|
||||||
|
|
||||||
// workaround for mercurial 2.1
|
// workaround for mercurial 2.1
|
||||||
if (isContentLengthWorkaround())
|
if (isContentLengthWorkaround())
|
||||||
{
|
{
|
||||||
@@ -296,11 +301,6 @@ public class DefaultCGIExecutor extends AbstractCGIExecutor
|
|||||||
int len = request.getContentLength();
|
int len = request.getContentLength();
|
||||||
EnvList env = new EnvList();
|
EnvList env = new EnvList();
|
||||||
|
|
||||||
if (passShellEnvironment)
|
|
||||||
{
|
|
||||||
apendOsEnvironment(env);
|
|
||||||
}
|
|
||||||
|
|
||||||
env.set(ENV_AUTH_TYPE, request.getAuthType());
|
env.set(ENV_AUTH_TYPE, request.getAuthType());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user