From 9cfd8b2fe3c825f9145427aaf1b4a9954662a20a Mon Sep 17 00:00:00 2001 From: Alan Gonzalez Date: Fri, 8 Apr 2022 13:40:22 -0400 Subject: [PATCH] Git Clone speedup on mac - commands.ts (#46) * Update commands.ts * Pretty js Co-authored-by: Alan Gonzalez <93621282+agonzalez-plume@users.noreply.github.com> --- src/utils/commands.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/utils/commands.ts b/src/utils/commands.ts index 7c0720f..66a05aa 100644 --- a/src/utils/commands.ts +++ b/src/utils/commands.ts @@ -95,7 +95,14 @@ export const macCommands = ( }, { command: "git", - args: ["clone", `${baseURL}/${owner}/${repo}.git`], + args: [ + "clone", + "--depth", + "1", + "--filter=blob:none", + "--sparse", + `${baseURL}/${owner}/${repo}.git`, + ], cwd: `/Users/${user}/${destDir}/${tempDIR}`, }, {