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);
}
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);
}
Aggregations