refNames.add(ref.getName());
}
}
repositoryInformation.setRefName(refNames.toArray(new String[refNames.size()]));
} catch (InvalidRemoteException e) {
throw new InvalidRepositoryException("Provided repository url is not valid", e);
} catch (TransportException e) {
throw new RepositoryTransportException("Transport error when checking remote repository", e);
} catch (GitAPIException e) {
throw new ADCException("Git API error when checking remote repository", e);
}