| | |
| | | branch = Repository.shortenRefName(branch).replace('/', fsc); |
| | | } |
| | | |
| | | String encodedPath = path == null ? "" : path.replace(' ', '-'); |
| | | encodedPath = encodedPath.replace('/', fsc); |
| | | return baseURL + Constants.RAW_PATH + repository + "/" + (branch == null ? "" : (branch + "/" + (path == null ? "" : encodedPath))); |
| | | String encodedPath = path == null ? "" : path.replace('/', fsc); |
| | | return baseURL + Constants.RAW_PATH + repository + "/" + (branch == null ? "" : (branch + "/" + encodedPath)); |
| | | } |
| | | |
| | | protected String getBranch(String repository, HttpServletRequest request) { |
| | |
| | | } else { |
| | | repository = path.substring(0, slash); |
| | | } |
| | | offset += ( slash + 1 ); |
| | | offset = ( slash + 1 ); |
| | | r = repositoryManager.getRepository(repository, false); |
| | | if (repository.equals(path)) { |
| | | // either only repository in url or no repository found |