fix(gitlab): encode namespaced project paths in /api/v4/projects call (#14269)

This commit is contained in:
Karen Kua 2022-02-17 03:20:55 -05:00 committed by GitHub
parent 6a2b91bd26
commit dfa553da11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -161,7 +161,7 @@ export async function getRawFile(
branchOrTag?: string branchOrTag?: string
): Promise<string | null> { ): Promise<string | null> {
const escapedFileName = urlEscape(fileName); const escapedFileName = urlEscape(fileName);
const repo = repoName ?? config.repository; const repo = urlEscape(repoName ?? config.repository);
const url = const url =
`projects/${repo}/repository/files/${escapedFileName}?ref=` + `projects/${repo}/repository/files/${escapedFileName}?ref=` +
(branchOrTag || `HEAD`); (branchOrTag || `HEAD`);