Search in sources :

Example 1 with CloneParams

use of org.eclipse.che.api.git.params.CloneParams in project che by eclipse.

the class GitProjectImporter method cloneRepository.

private void cloneRepository(GitConnection git, String remoteName, String url, boolean recursiveEnabled) throws ServerException, UnauthorizedException, URISyntaxException {
    final CloneParams params = CloneParams.create(url).withRemoteName(remoteName).withRecursive(recursiveEnabled);
    git.clone(params);
}
Also used : CloneParams(org.eclipse.che.api.git.params.CloneParams)

Aggregations

CloneParams (org.eclipse.che.api.git.params.CloneParams)1