Encode branch in urls

This commit is contained in:
René Pfeuffer
2018-10-23 13:03:15 +02:00
parent f44f352a2a
commit df8cc25bcc
2 changed files with 5 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ function createUrl(repository: Repository, revision: string, path: string) {
// TODO handle trailing slash
const pathDefined = path ? path : "";
return `${base}${revision}/${pathDefined}`;
return `${base}${encodeURIComponent(revision)}/${pathDefined}`;
}
export function fetchSourcesPending(