execute "hg init" in the scm home directory instead of current working directory

This commit is contained in:
Sebastian Sdorra
2012-02-23 18:23:52 +01:00
parent a4464be18f
commit 84200ab501

View File

@@ -480,8 +480,13 @@ public class HgRepositoryHandler
protected ExtendedCommand buildCreateCommand(Repository repository,
File directory)
{
return new ExtendedCommand(config.getHgBinary(), "init",
directory.getPath());
ExtendedCommand cmd = new ExtendedCommand(config.getHgBinary(), "init",
directory.getPath());
// issue-97
cmd.setWorkDirectory(baseDirectory);
return cmd;
}
/**