diff --git a/lib/platform/git/storage.js b/lib/platform/git/storage.js index fbd7670407f3f615de813437bd33f99067f3c1bb..5305ca53f26b3618b1cf51fe4d5573e2a59f6286 100644 --- a/lib/platform/git/storage.js +++ b/lib/platform/git/storage.js @@ -85,10 +85,7 @@ class Storage { git = Git(cwd).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': true, - }); + await git.fetch([config.url, '--depth=2', '--no-single-branch']); await determineBaseBranch(); await resetToBranch(config.baseBranch); await cleanLocalBranches();