From 01aaf078df11b5cf2673e01fea92205452bf2cf9 Mon Sep 17 00:00:00 2001
From: Kirill Romanov <djaler1@gmail.com>
Date: Mon, 25 Nov 2019 11:45:59 +0300
Subject: [PATCH] fix(storage): do not throw error when no remote branch to
 delete (#4314) (#4868)

---
 lib/platform/git/storage.ts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/platform/git/storage.ts b/lib/platform/git/storage.ts
index f18d14bc07..2d79546378 100644
--- a/lib/platform/git/storage.ts
+++ b/lib/platform/git/storage.ts
@@ -381,8 +381,7 @@ export class Storage {
       logger.debug({ branchName }, 'Deleted remote branch');
     } catch (err) /* istanbul ignore next */ {
       checkForPlatformFailure(err);
-      logger.info({ branchName, err }, 'Error deleting remote branch');
-      throw new Error('repository-changed');
+      logger.debug({ branchName }, 'No remote branch to delete');
     }
     try {
       await this._deleteLocalBranch(branchName);
-- 
GitLab