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

This commit is contained in:
Michael Kriese 2019-05-14 13:05:10 +02:00 коммит произвёл Rhys Arkins
Родитель 5b81a330ab
Коммит 6b00f2928d
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -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();