use of org.eclipse.che.api.git.shared.PullRequest in project che by eclipse.
the class GitServiceClientImpl method pull.
@Override
public void pull(DevMachine devMachine, ProjectConfigDto project, String refSpec, String remote, AsyncRequestCallback<PullResponse> callback) {
PullRequest pullRequest = dtoFactory.createDto(PullRequest.class).withRemote(remote).withRefSpec(refSpec);
String url = appContext.getDevMachine().getWsAgentBaseUrl() + PULL + "?projectPath=" + project.getPath();
asyncRequestFactory.createPostRequest(url, pullRequest).send(callback);
}
use of org.eclipse.che.api.git.shared.PullRequest in project che by eclipse.
the class GitServiceClientImpl method pull.
@Override
public Promise<PullResponse> pull(DevMachine devMachine, Path project, String refSpec, String remote) {
PullRequest pullRequest = dtoFactory.createDto(PullRequest.class).withRemote(remote).withRefSpec(refSpec);
String url = devMachine.getWsAgentBaseUrl() + PULL + "?projectPath=" + project;
return asyncRequestFactory.createPostRequest(url, pullRequest).send(dtoUnmarshallerFactory.newUnmarshaller(PullResponse.class));
}
Aggregations