From 6eb5fe787b46c139e1077eaced2187a595e14aaf Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Thu, 19 Apr 2018 09:09:27 +0200
Subject: [PATCH] fix: typo in large file tree url

---
 lib/platform/github/index.js                          | 2 +-
 test/platform/github/__snapshots__/index.spec.js.snap | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/platform/github/index.js b/lib/platform/github/index.js
index 6d16a69c7c..a2479f849a 100644
--- a/lib/platform/github/index.js
+++ b/lib/platform/github/index.js
@@ -1088,7 +1088,7 @@ async function getFile(filePath, branchName) {
       let treeUrl = `repos/${config.repository}/git/trees/${config.baseBranch}`;
       const parentPath = path.dirname(filePath);
       if (parentPath !== '.') {
-        treeUrl += `.${parentPath}`;
+        treeUrl += `/${parentPath}`;
       }
       const baseName = path.basename(filePath);
       let fileSha;
diff --git a/test/platform/github/__snapshots__/index.spec.js.snap b/test/platform/github/__snapshots__/index.spec.js.snap
index 8ad665af2e..9d99beafe3 100644
--- a/test/platform/github/__snapshots__/index.spec.js.snap
+++ b/test/platform/github/__snapshots__/index.spec.js.snap
@@ -353,7 +353,7 @@ Array [
     "repos/some/repo/contents/backend/package-lock.json?ref=master",
   ],
   Array [
-    "repos/some/repo/git/trees/master.backend",
+    "repos/some/repo/git/trees/master/backend",
   ],
   Array [
     "repos/some/repo/git/blobs/some-sha",
-- 
GitLab