// The url string obtained from the REST SDK is not encoded. // Replace space which is the only known valid character in team project and repository name that // is not a valid character in URI public String getUsableGitUrl() { GitRepository repo = getGitRepository(); if (repo != null && repo.getRemoteUrl() != null) { return UrlHelper.getCmdLineFriendlyGitRemoteUrl(this.getGitRepository().getRemoteUrl()); } return null; }