We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 946d787 commit 7b20616Copy full SHA for 7b20616
eng/common/pipelines/templates/steps/sparse-checkout.yml
@@ -44,8 +44,10 @@ steps:
44
Write-Host "git sparse-checkout init"
45
git sparse-checkout init
46
47
- Write-Host "git sparse-checkout set '/*' '!/*/' '/eng'"
48
- git sparse-checkout set '/*' '!/*/' '/eng'
+ # 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
49
+ Write-Host "git sparse-checkout set --no-cone '/*' '!/*/' '/eng'"
50
+ git sparse-checkout set --no-cone '/*' '!/*/' '/eng'
51
}
52
53
# Prevent wildcard expansion in Invoke-Expression (e.g. for checkout path '/*')
0 commit comments