passphrase = authenticationInfo.getPassphrase();
}
ScmRepository scmRepository = getScmManager().makeScmRepository( url );
ScmProviderRepository providerRepository = scmRepository.getProviderRepository();
if ( StringUtils.isNotEmpty( username ) )
{
providerRepository.setUser( username );
}
if ( StringUtils.isNotEmpty( password ) )
{
providerRepository.setPassword( password );
}
if ( providerRepository instanceof ScmProviderRepositoryWithHost )
{
ScmProviderRepositoryWithHost providerRepo = (ScmProviderRepositoryWithHost) providerRepository;