From 83e54064f9f6c431c01fdd350a126d73269637f6 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Wed, 2 Sep 2020 11:31:16 +0200 Subject: [PATCH] fix(azure): use repo remoteUrl if available (#7165) --- lib/platform/azure/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/platform/azure/index.ts b/lib/platform/azure/index.ts index fb8be55d16..0923c9d529 100644 --- a/lib/platform/azure/index.ts +++ b/lib/platform/azure/index.ts @@ -153,9 +153,10 @@ export async function initRepo({ hostType: defaults.hostType, url: defaults.endpoint, }); - const url = + const manualUrl = defaults.endpoint + `${encodeURIComponent(projectName)}/_git/${encodeURIComponent(repoName)}`; + const url = repo.remoteUrl || manualUrl; await git.initRepo({ ...config, localDir, -- GitLab