From 7af01c5ee2ffa16077b6d3736fbbde3e3b09712c Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Wed, 1 Jul 2020 08:12:36 +0200
Subject: [PATCH] fix: set empty cache if not found

---
 lib/util/cache/repository/index.ts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/util/cache/repository/index.ts b/lib/util/cache/repository/index.ts
index 395316808c..4ca55197b7 100644
--- a/lib/util/cache/repository/index.ts
+++ b/lib/util/cache/repository/index.ts
@@ -44,6 +44,7 @@ export async function initialize(config: RenovateConfig): Promise<void> {
     logger.debug({ cacheFileName }, 'Read repository cache');
   } catch (err) {
     logger.debug({ cacheFileName }, 'No repository cache found');
+    cache = {};
   }
 }
 
-- 
GitLab