diff --git a/lib/platform/gitlab/index.ts b/lib/platform/gitlab/index.ts index fb6a3fe77fedcc5eff77e160f5fa140d97fd769b..d3de42bb4bd98c2ecd14bd0b71e9756b657118fe 100644 --- a/lib/platform/gitlab/index.ts +++ b/lib/platform/gitlab/index.ts @@ -208,7 +208,10 @@ export async function initRepo({ url: defaults.endpoint, }); let url: string; - if (res.body.http_url_to_repo === null) { + if ( + process.env.GITLAB_IGNORE_REPO_URL || + res.body.http_url_to_repo === null + ) { logger.debug('no http_url_to_repo found. Falling back to old behaviour.'); const { host, protocol } = URL.parse(defaults.endpoint); url = GitStorage.getUrl({