Skip to content

Commit

Permalink
faster clone
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Sep 23, 2024
1 parent b555711 commit 21f8b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clone.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const exec = require("child_process").exec;
const matrix = require("./matrix.json");

for (const item of matrix) {
const command = `git clone --depth=1 -b ${item.ref} git@github.com:${item.repository}.git repos/${item.path}`;
const command = `git clone --depth=1 --filter blob:limit=200k --no-tags -b ${item.ref} git@github.com:${item.repository}.git repos/${item.path}`;

console.log(`Running ${command}`);
exec(command, function (err) {
Expand Down

0 comments on commit 21f8b38

Please sign in to comment.