git = Git.open( fileSet.getBasedir() );
CredentialsProvider credentials =
JGitUtils.prepareSession( getLogger(), git, (GitScmProviderRepository) repo );
List<ScmFile> list = new ArrayList<ScmFile>();
Collection<Ref> lsResult = git.lsRemote().setCredentialsProvider( credentials ).call();
for ( Ref ref : lsResult )
{
getLogger().debug( ref.getObjectId().getName() + " " + ref.getTarget().getName() );
list.add( new ScmFile( ref.getName(), ScmFileStatus.CHECKED_IN ) );
}