Turn off git auto gc for sparse-checkout (#4713)

Co-authored-by: James Suplizio <jasupliz@microsoft.com>
This commit is contained in:
Azure SDK Bot 2023-06-13 14:11:38 -04:00 committed by GitHub
parent 0b59e5a94c
commit fac8d4e309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,6 +46,10 @@ steps:
git clone --no-checkout --filter=tree:0 https://github.com/$($repository.Name) .
}
# Turn off git GC for sparse checkout. Note: The devops checkout task does this by default
Write-Host "git config gc.auto 0"
git config gc.auto 0
Write-Host "git sparse-checkout init"
git sparse-checkout init