Path basePath = new Path(baseLocation.getPath());
IPath tmp = new Path("/"); //$NON-NLS-1$
for (int i = 0; i < 5; i++) {
tmp = tmp.append(basePath.segment(i));
}
URI cloneLocation = new URI(baseLocation.getScheme(), baseLocation.getAuthority(), tmp.toPortableString(), null, baseLocation.getFragment());
JSONObject ref = listEntry(gitSegment, 0, true, 0, cloneLocation, GitUtils.encode(gitSegment));
parents.add(ref);
parents.add(listEntry(new Path(cloneLocation.getPath()).lastSegment(), 0, true, 0, cloneLocation, null));
URI locationWalk = URIUtil.append(cloneLocation, GitUtils.encode(gitSegment));