mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +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,
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user