From dc395e5ce4db9de5e943dbb503b8f9928e884df6 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:52 -0400 Subject: [PATCH] Turn off git auto gc for sparse-checkout (#30756) 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 cee1fbb2d58e..ab95453954cb 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