Skip to content

Commit

Permalink
Git Clone speedup on mac - commands.ts (#46)
Browse files Browse the repository at this point in the history
* Update commands.ts

* Pretty js

Co-authored-by: Alan Gonzalez <[email protected]>
  • Loading branch information
alangonzalez and agonzalez-plume committed Apr 8, 2022
1 parent 3f96839 commit 9cfd8b2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/utils/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
},
{
Expand Down

0 comments on commit 9cfd8b2

Please sign in to comment.