Skip to content

Commit f0e77dc

Browse files
azure-sdkbenbp
andauthored
Sparse checkout 1espt auto-baselining file by default (#39380)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
1 parent d283c21 commit f0e77dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

eng/common/pipelines/templates/steps/sparse-checkout.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ steps:
8686
8787
# Set non-cone mode otherwise path filters will not work in git >= 2.37.0
8888
# See https://github.blog/2022-06-27-highlights-from-git-2-37/#tidbits
89-
git sparse-checkout set --no-cone '/*' '!/*/' '/eng'
89+
# '/*' '!/*/' -> only checkout files in top level directory
90+
# '/eng' -> checkout required eng/ scripts/configs
91+
# '.config' -> required for files like .config/1espt/PipelineAutobaseliningConfig.yml and .config/guardian/.gdnbaselines used by 1es PT scripts
92+
git sparse-checkout set --no-cone '/*' '!/*/' '/eng' '/.config'
9093
}
9194
9295
# Prevent wildcard expansion in Invoke-Expression (e.g. for checkout path '/*')

0 commit comments

Comments
 (0)