diff --git a/lib/platform/git/storage.js b/lib/platform/git/storage.js index 75fa1d22534e7ec7a3eba191e6b6f502c791f942..4cc680af0d8c8fd5a334b6a5c384231b03d4afd1 100644 --- a/lib/platform/git/storage.js +++ b/lib/platform/git/storage.js @@ -46,7 +46,11 @@ class Storage { git = Git(repoDir).silent(true); await git.raw(['remote', 'set-url', 'origin', config.url]); const fetchStart = process.hrtime(); - await git.fetch(config.url, ['--depth=2', '--no-single-branch']); + await git.fetch(config.url, [ + '--depth=2', + '--no-single-branch', + '--prune', + ]); const fetchSeconds = Math.round( convertHrtime(process.hrtime(fetchStart)).seconds );