From e4f8566f54779df8a636e840fb23992d6e15c56b Mon Sep 17 00:00:00 2001
From: mohd hassaan <sr.hassan23@gmail.com>
Date: Wed, 1 May 2019 20:25:17 +0530
Subject: [PATCH] fix(azure-devops):Sanitize azure devops repoName (#3620)

fix(azure-devops): Sanitize azure devops repo name
---
 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 08ec3e41b9..b53c9f5cfd 100644
--- a/lib/platform/azure/index.js
+++ b/lib/platform/azure/index.js
@@ -135,7 +135,7 @@ async function initRepo({ repository, endpoint, localDir, azureWorkItemId }) {
   const [projectName, repoName] = repository.split('/');
   const url =
     endpoint.replace('https://', `https://token:${opts.token}@`) +
-    `${encodeURIComponent(projectName)}/_git/${repoName}`;
+    `${encodeURIComponent(projectName)}/_git/${encodeURIComponent(repoName)}`;
   await config.storage.initRepo({
     ...config,
     localDir,
-- 
GitLab