mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
fix(gitlab): encode namespaced project paths in /api/v4/projects call (#14269)
This commit is contained in:
parent
6a2b91bd26
commit
dfa553da11
1 changed files with 1 additions and 1 deletions
|
@ -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`);
|
||||||
|
|
Loading…
Reference in a new issue