Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Sparse checkout 1espt auto-baselining file by default
  • Loading branch information
benbp authored and azure-sdk committed Jan 23, 2025
commit 596d8f2acb3df85dd4a5766d35be7a20d1167e16
5 changes: 4 additions & 1 deletion eng/common/pipelines/templates/steps/sparse-checkout.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '/*')
Expand Down
Loading