Skip to content
Snippets Groups Projects
Commit 6b00f292 authored by Michael Kriese's avatar Michael Kriese Committed by Rhys Arkins
Browse files

fix(gitfs): fix fetch args again (#3684)

parent 5b81a330
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment