From 16eca4ec4ebd2c2aa7e2f6f178a046661ef306a1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Johan=20Hillerstr=C3=B6m?= <phetast@gmail.com>
Date: Tue, 23 Apr 2019 16:03:58 +0200
Subject: [PATCH] fix(azure-devops): Sanitize azure devops project name (#3582)

---
 lib/platform/azure/index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/platform/azure/index.js b/lib/platform/azure/index.js
index 7858ab3a31..f25b2873f5 100644
--- a/lib/platform/azure/index.js
+++ b/lib/platform/azure/index.js
@@ -134,7 +134,7 @@ async function initRepo({ repository, endpoint, localDir, azureWorkItemId }) {
   const [projectName, repoName] = repository.split('/');
   const url =
     endpoint.replace('https://', `https://token:${opts.token}@`) +
-    `${projectName}/_git/${repoName}`;
+    `${encodeURIComponent(projectName)}/_git/${repoName}`;
   await config.storage.initRepo({
     ...config,
     localDir,
-- 
GitLab