From b8105c2e9debf161b1fe08b7d3e25722d09b89c2 Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Sun, 18 Mar 2018 08:42:04 +0100
Subject: [PATCH] fix: encodeURI filePath in getFile (github)

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

diff --git a/lib/platform/github/index.js b/lib/platform/github/index.js
index f447fc5079..b988c16388 100644
--- a/lib/platform/github/index.js
+++ b/lib/platform/github/index.js
@@ -993,7 +993,7 @@ async function getFile(filePath, branchName) {
   let res;
   try {
     res = await get(
-      `repos/${config.repository}/contents/${filePath}?ref=${branchName ||
+      `repos/${config.repository}/contents/${encodeURI(filePath)}?ref=${branchName ||
         config.baseBranch}`
     );
   } catch (error) {
-- 
GitLab