use of org.eclipse.egit.core.RepositoryUtil in project egit by eclipse.
the class AbstractGitCloneWizard method executeCloneOperation.
private IStatus executeCloneOperation(final CloneOperation op, final GitRepositoryInfo repositoryInfo, final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
final RepositoryUtil util = Activator.getDefault().getRepositoryUtil();
op.run(monitor);
util.addConfiguredRepository(op.getGitDir());
try {
if (repositoryInfo.shouldSaveCredentialsInSecureStore())
SecureStoreUtils.storeCredentials(repositoryInfo.getCredentials(), new URIish(repositoryInfo.getCloneUri()));
} catch (Exception e) {
Activator.error(e.getMessage(), e);
}
return Status.OK_STATUS;
}
Aggregations