}
public static Commandline getBaseCommand( String commandName, GitScmProviderRepository repo, ScmFileSet fileSet,
String options )
{
Settings settings = GitUtil.getSettings();
Commandline cl = new Commandline();
cl.setExecutable( "git" );
cl.setWorkingDirectory( fileSet.getBasedir().getAbsolutePath() );
if ( settings.getTraceGitCommand() != null )
{
cl.addEnvironment( "GIT_TRACE", settings.getTraceGitCommand() );
}
cl.createArg().setLine( options );
cl.createArg().setValue( commandName );