|
|
@ -69,6 +69,7 @@ class Init extends TextBuiltin { |
|
|
|
protected void run() throws Exception { |
|
|
|
protected void run() throws Exception { |
|
|
|
InitCommand command = Git.init(); |
|
|
|
InitCommand command = Git.init(); |
|
|
|
command.setBare(bare); |
|
|
|
command.setBare(bare); |
|
|
|
|
|
|
|
if (gitdir != null) |
|
|
|
command.setDirectory(new File(gitdir)); |
|
|
|
command.setDirectory(new File(gitdir)); |
|
|
|
Repository repository = command.call().getRepository(); |
|
|
|
Repository repository = command.call().getRepository(); |
|
|
|
out.println(MessageFormat.format( |
|
|
|
out.println(MessageFormat.format( |
|
|
|