mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 01:15:44 +01:00
Fix offset for svn repositories
This commit is contained in:
@@ -50,7 +50,7 @@ export function fetchSources(repository: Repository, revision: string, path: str
|
||||
function createUrl(repository: Repository, revision: string, path: string, offset: number) {
|
||||
const base = (repository._links.sources as Link).href;
|
||||
if (!revision && !path) {
|
||||
return base;
|
||||
return `${base}?offset=${offset}`;
|
||||
}
|
||||
|
||||
// TODO handle trailing slash
|
||||
|
||||
Reference in New Issue
Block a user