} else { | } else { | ||||
repository = path.substring(0, slash); | repository = path.substring(0, slash); | ||||
} | } | ||||
offset += slash; | |||||
if (offset == 0) { | |||||
offset++; | |||||
} | |||||
offset += ( slash + 1 ); | |||||
r = repositoryManager.getRepository(repository, false); | r = repositoryManager.getRepository(repository, false); | ||||
if (repository.equals(path)) { | if (repository.equals(path)) { | ||||
// either only repository in url or no repository found | // either only repository in url or no repository found |