diff --git a/eng/common/pipelines/templates/steps/sparse-checkout.yml b/eng/common/pipelines/templates/steps/sparse-checkout.yml index 10147521dbe1..50603bc35a24 100644 --- a/eng/common/pipelines/templates/steps/sparse-checkout.yml +++ b/eng/common/pipelines/templates/steps/sparse-checkout.yml @@ -39,9 +39,15 @@ steps: Write-Host "Repository $($repository.Name) has already been initialized. Skipping this step." } else { Write-Host "Repository $($repository.Name) is being initialized." + + Write-Host "git clone --no-checkout --filter=tree:0 git://github.com/$($repository.Name) ." git clone --no-checkout --filter=tree:0 git://github.com/$($repository.Name) . + + Write-Host "git sparse-checkout init" git sparse-checkout init - git sparse-checkout set eng + + Write-Host "git sparse-checkout set '/*' '!/*/' '/eng'" + git sparse-checkout set '/*' '!/*/' '/eng' } $gitsparsecmd = "git sparse-checkout add $paths"