Sparse checkout 1espt auto-baselining file by default (#6371)

Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This commit is contained in:
Azure SDK Bot 2025-01-24 12:50:12 -08:00 committed by GitHub
parent 076452e183
commit 3e3c0cedf9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 '/*')