Skip to content
Snippets Groups Projects
Commit 8c613a61 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

refactor(gitfs): clone depth 2

parent b54ffa56
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ class Storage {
config = { ...args };
repoDir = await tmp.dir({ unsafeCleanup: true });
git = Git(repoDir.path).silent(true);
await git.clone(config.url, '.');
await git.clone(config.url, '.', ['--depth=2', '--no-single-branch']);
if (config.gitAuthor) {
await git.raw(['config', 'user.name', config.gitAuthor.name]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment