From 159a0efc901430da1639ce747319770e3c33296a Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Sat, 17 Mar 2018 07:16:56 +0100
Subject: [PATCH] fix: retrieve baseCommitSha before comparing in mirrorMode

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

diff --git a/lib/platform/github/index.js b/lib/platform/github/index.js
index b31bed0e29..ba1068bbce 100644
--- a/lib/platform/github/index.js
+++ b/lib/platform/github/index.js
@@ -219,6 +219,7 @@ async function initRepo({
     logger.debug('Parent sha is ' + parentSha);
     // This is a lovely "hack" by GitHub that lets us force update our fork's master
     // with the base commit from the parent repository
+    config.baseCommitSha = await getBaseCommitSHA();
     if (parentSha !== config.baseCommitSHA) {
       logger.info('Updating fork default branch');
       await get.patch(
-- 
GitLab