Skip to content

Commit

Permalink
Use partial clones for increased performance
Browse files Browse the repository at this point in the history
  • Loading branch information
p-b-- committed Dec 11, 2023
1 parent bda6803 commit 4d2d372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repoharvester.go
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ func git_ops_clone(ctx context.Context, repos chan Repo, git_path *string, worki
go func() {
defer wg.Done()
defer g_semaphore.Release(1)
cmd := exec.CommandContext(ctx, *git_path, "clone", "-n", "-q", repo.Clone_url)
cmd := exec.CommandContext(ctx, *git_path, "clone", "-n", "-q", "--filter=tree:0", repo.Clone_url)
cmd.Dir = *working_dir
std_err := g_buff_pool.Get().(*bytes.Buffer)
std_err.Reset()
Expand Down

0 comments on commit 4d2d372

Please sign in to comment.