mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
execute "hg init" in the scm home directory instead of current working directory
This commit is contained in:
@@ -480,8 +480,13 @@ public class HgRepositoryHandler
|
|||||||
protected ExtendedCommand buildCreateCommand(Repository repository,
|
protected ExtendedCommand buildCreateCommand(Repository repository,
|
||||||
File directory)
|
File directory)
|
||||||
{
|
{
|
||||||
return new ExtendedCommand(config.getHgBinary(), "init",
|
ExtendedCommand cmd = new ExtendedCommand(config.getHgBinary(), "init",
|
||||||
directory.getPath());
|
directory.getPath());
|
||||||
|
|
||||||
|
// issue-97
|
||||||
|
cmd.setWorkDirectory(baseDirectory);
|
||||||
|
|
||||||
|
return cmd;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user