From 366dca87d3156e80adf236c9b8652f33f0349287 Mon Sep 17 00:00:00 2001 From: Ben Broderick Phillips Date: Wed, 22 Jan 2025 19:24:34 -0500 Subject: [PATCH] Sparse checkout 1espt auto-baselining file by default --- eng/common/pipelines/templates/steps/sparse-checkout.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eng/common/pipelines/templates/steps/sparse-checkout.yml b/eng/common/pipelines/templates/steps/sparse-checkout.yml index 9e3cc3164ab..49ba3000df3 100644 --- a/eng/common/pipelines/templates/steps/sparse-checkout.yml +++ b/eng/common/pipelines/templates/steps/sparse-checkout.yml @@ -86,7 +86,10 @@ steps: # Set non-cone mode otherwise path filters will not work in git >= 2.37.0 # See https://github.blog/2022-06-27-highlights-from-git-2-37/#tidbits - git sparse-checkout set --no-cone '/*' '!/*/' '/eng' + # '/*' '!/*/' -> only checkout files in top level directory + # '/eng' -> checkout required eng/ scripts/configs + # '.config' -> required for files like .config/1espt/PipelineAutobaseliningConfig.yml and .config/guardian/.gdnbaselines used by 1es PT scripts + git sparse-checkout set --no-cone '/*' '!/*/' '/eng' '/.config' } # Prevent wildcard expansion in Invoke-Expression (e.g. for checkout path '/*')