From fbf20bf8b9aaa46fde1314ab8fa30854736c67ae Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 18 Apr 2023 20:37:32 -0700 Subject: [PATCH] update sparse checkout path (#4558) Co-authored-by: chunyu3 --- eng/common/scripts/TypeSpec-Project-Sync.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/scripts/TypeSpec-Project-Sync.ps1 b/eng/common/scripts/TypeSpec-Project-Sync.ps1 index f8656bc1d..0cf2700e6 100644 --- a/eng/common/scripts/TypeSpec-Project-Sync.ps1 +++ b/eng/common/scripts/TypeSpec-Project-Sync.ps1 @@ -105,8 +105,8 @@ if ( $configuration["repo"] -and $configuration["commit"]) { try { if (!(Test-Path ".git")) { InitializeSparseGitClone $gitRemoteValue - UpdateSparseCheckoutFile $specSubDirectory $configuration["additionalDirectories"] } + UpdateSparseCheckoutFile $specSubDirectory $configuration["additionalDirectories"] git checkout $configuration["commit"] if ($LASTEXITCODE) { exit $LASTEXITCODE } }