} else {
// need to start from the project root
// project path is of the form /file/{workspaceId}/{projectName}
result = clonePath.uptoSegment(3).append(path);
}
return new URI(cloneLocation.getScheme(), cloneLocation.getUserInfo(), cloneLocation.getHost(), cloneLocation.getPort(), result.makeAbsolute()
.toString(), cloneLocation.getQuery(), cloneLocation.getFragment());
}
protected JSONArray parentsToJSON(RevCommit[] revCommits) throws JSONException, IOException, URISyntaxException {
JSONArray parents = new JSONArray();