Search in sources :

Example 1 with FetchParams

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

the class GitProjectImporter method fetch.

private void fetch(GitConnection git, String remote) throws UnauthorizedException, GitException {
    final FetchParams params = FetchParams.create(remote);
    git.fetch(params);
}
Also used : FetchParams(org.eclipse.che.api.git.params.FetchParams)

Example 2 with FetchParams

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

the class GitProjectImporter method fetchRefSpecs.

private void fetchRefSpecs(GitConnection git, String remote, List<String> refSpecs) throws UnauthorizedException, GitException {
    final FetchParams params = FetchParams.create(remote).withRefSpec(refSpecs);
    git.fetch(params);
}
Also used : FetchParams(org.eclipse.che.api.git.params.FetchParams)

Aggregations

FetchParams (org.eclipse.che.api.git.params.FetchParams)2