Skip to content

Commit f2beb36

Browse files
Turn off git auto gc for sparse-checkout (Azure#21014)
Co-authored-by: James Suplizio <[email protected]>
1 parent 19c14fc commit f2beb36

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ steps:
4646
git clone --no-checkout --filter=tree:0 https://github.com/$($repository.Name) .
4747
}
4848
49+
# Turn off git GC for sparse checkout. Note: The devops checkout task does this by default
50+
Write-Host "git config gc.auto 0"
51+
git config gc.auto 0
52+
4953
Write-Host "git sparse-checkout init"
5054
git sparse-checkout init
5155

0 commit comments

Comments
 (0)