diff --git a/lib/platform/azure/index.ts b/lib/platform/azure/index.ts index fb8be55d1680711c35bcad353e60db2921485279..0923c9d529bf681009d5197c8b3099643221de16 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,