mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
fix mercurial python path for commit, source and blame on windows
This commit is contained in:
@@ -228,19 +228,8 @@ public class HgCGIServlet extends HttpServlet
|
||||
{
|
||||
String name = repository.getName();
|
||||
File directory = handler.getDirectory(repository);
|
||||
String pythonPath = HgPythonScript.getScriptDirectory(
|
||||
SCMContext.getContext()).getAbsolutePath();
|
||||
HgConfig config = handler.getConfig();
|
||||
|
||||
if (config != null)
|
||||
{
|
||||
if (Util.isNotEmpty(config.getPythonPath()))
|
||||
{
|
||||
pythonPath =
|
||||
pythonPath.concat(File.pathSeparator).concat(config.getPythonPath());
|
||||
}
|
||||
}
|
||||
|
||||
String pythonPath = HgUtil.getPythonPath(handler.getConfig());
|
||||
|
||||
CGIExecutor executor = cgiExecutorFactory.createExecutor(configuration,
|
||||
getServletContext(), request, response);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user