From 941d6f14aa1e34fd7c25e7c249384a47f4a329b2 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Wed, 19 Jun 2019 11:46:28 +0200 Subject: [PATCH] fix(gitFs): catch Could not write new index file error --- lib/platform/git/storage.ts | 1 + lib/platform/github/index.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/platform/git/storage.ts b/lib/platform/git/storage.ts index 679361a4b5..044806fdff 100644 --- a/lib/platform/git/storage.ts +++ b/lib/platform/git/storage.ts @@ -465,6 +465,7 @@ function checkForPlatformFailure(err: Error) { 'The requested URL returned error: 5', 'The remote end hung up unexpectedly', 'access denied or repository not exported', + 'Could not write new index file', ]; for (const errorStr of platformErrorStrings) { if (err.message.includes(errorStr)) { diff --git a/lib/platform/github/index.js b/lib/platform/github/index.js index b8f6c3106b..1e7b035ffb 100644 --- a/lib/platform/github/index.js +++ b/lib/platform/github/index.js @@ -429,7 +429,6 @@ async function getBranchProtection(branchName) { // istanbul ignore next async function setBaseBranch(branchName = config.baseBranch) { - logger.debug(`Setting baseBranch to ${branchName}`); config.baseBranch = branchName; config.baseCommitSHA = null; await config.storage.setBaseBranch(branchName); -- GitLab