private List<String> buildCommand(File repoDirectory, GitInitOptions options) {
		List<String> command = new ArrayList<String>();
		command.add(JavaGitConfiguration.getGitCommand());
		command.add("init");
		if(options!=null){

			if (options.isOptBare()) {
				command.add("--bare");
			}
			if (options.isOptTemplate()) {
				command.add("--template="+options.getOptTemplateDirecory());
			}
			if (options.isOptSharedUmask()) {
				command.add("--shared=");
			}
			if (options.isOptSharedGroup()) {
				command.add("--shared="+options.getOptSharedGroupName());
			}
			if (options.isOptSharedAll()) {
				command.add("--shared=");
			}
			if (options.isOptSharedOctal()) {
				command.add("--shared="+options.getOptSharedOctalValue());
			}
		}
		return command;
	}
private List<String> buildCommand(File repoDirectory, GitInitOptions options) {
		List<String> command = new ArrayList<String>();
		command.add(JavaGitConfiguration.getGitCommand());
		command.add("init");
		if(options!=null){

			if (options.isOptBare()) {
				command.add("--bare");
			}
			if (options.isOptTemplate()) {
				command.add("--template="+options.getOptTemplateDirecory());
			}
			if (options.isOptSharedUmask()) {
				command.add("--shared=");
			}
			if (options.isOptSharedGroup()) {
				command.add("--shared="+options.getOptSharedGroupName());
			}
			if (options.isOptSharedAll()) {
				command.add("--shared=");
			}
			if (options.isOptSharedOctal()) {
				command.add("--shared="+options.getOptSharedOctalValue());
			}
		}
		return command;
	}
private List < String > buildCommand ( File repoDirectory , GitInitOptions options ) { List < String > command = new ArrayList < String > ( ) ; command . add ( JavaGitConfiguration . getGitCommand ( ) ) ; command . add ( "init" ) ; if ( options != null ) { if ( options . isOptBare ( ) ) { command . add ( "--bare" ) ; } if ( options . isOptTemplate ( ) ) { command . add ( "--template=" + options . getOptTemplateDirecory ( ) ) ; } if ( options . isOptSharedUmask ( ) ) { command . add ( "--shared=" ) ; } if ( options . isOptSharedGroup ( ) ) { command . add ( "--shared=" + options . getOptSharedGroupName ( ) ) ; } if ( options . isOptSharedAll ( ) ) { command . add ( "--shared=" ) ; } if ( options . isOptSharedOctal ( ) ) { command . add ( "--shared=" + options . getOptSharedOctalValue ( ) ) ; } } return command ; }
/*
Build the command to be executed using the Git Init method
/ * Build the command to be executed using the Git Init method