use system environment when executing "hg create"

This commit is contained in:
Sebastian Sdorra
2012-12-14 20:11:33 +01:00
parent 8b22788fe8
commit 4cee27b744
2 changed files with 41 additions and 1 deletions

View File

@@ -546,6 +546,9 @@ public class HgRepositoryHandler
ExtendedCommand cmd = new ExtendedCommand(config.getHgBinary(), "init",
directory.getAbsolutePath());
// copy system environment, because of the PATH variable
cmd.setUseSystemEnvironment(true);
// issue-97
cmd.setWorkDirectory(baseDirectory);