From fac8d4e309e01cc1bb287006c3737f2ba48993d4 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 13 Jun 2023 14:11:38 -0400 Subject: [PATCH] Turn off git auto gc for sparse-checkout (#4713) Co-authored-by: James Suplizio --- eng/common/pipelines/templates/steps/sparse-checkout.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eng/common/pipelines/templates/steps/sparse-checkout.yml b/eng/common/pipelines/templates/steps/sparse-checkout.yml index cee1fbb2d..ab9545395 100644 --- a/eng/common/pipelines/templates/steps/sparse-checkout.yml +++ b/eng/common/pipelines/templates/steps/sparse-checkout.yml @@ -46,6 +46,10 @@ steps: git clone --no-checkout --filter=tree:0 https://github.com/$($repository.Name) . } + # Turn off git GC for sparse checkout. Note: The devops checkout task does this by default + Write-Host "git config gc.auto 0" + git config gc.auto 0 + Write-Host "git sparse-checkout init" git sparse-checkout init