From 7109efd0aa9df265c69dccd85adc24deeae8712d Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Mon, 10 Sep 2018 12:19:25 +0200 Subject: [PATCH] fix(gitfs): restore remote prune origin during fetch --- lib/platform/git/storage.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/platform/git/storage.js b/lib/platform/git/storage.js index c3ad6976bd..9a7e989025 100644 --- a/lib/platform/git/storage.js +++ b/lib/platform/git/storage.js @@ -78,6 +78,7 @@ class Storage { await determineBaseBranch(); await resetToBranch(config.baseBranch); await cleanLocalBranches(); + await git.raw(['remote', 'prune', 'origin']); const fetchSeconds = Math.round( convertHrtime(process.hrtime(fetchStart)).seconds ); -- GitLab