Skip to content

Commit 9cea94b

Browse files
Sync eng/common directory with azure-sdk-tools for PR 7634 (#34177)
* Fix sparse-checkout git command line behavior * Use command arg parsing behavior in sparse-checkout.yml --------- Co-authored-by: Daniel Jurek <[email protected]>
1 parent b027bbb commit 9cea94b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ steps:
2626
# Define this inline, because of the chicken/egg problem with loading a script when nothing
2727
# has been checked out yet.
2828
script: |
29+
# Setting $PSNativeCommandArgumentPassing to 'Legacy' to use PowerShell
30+
# 7.2 behavior for command argument passing. Newer behaviors will result
31+
# in errors from git.exe.
32+
$PSNativeCommandArgumentPassing = 'Legacy'
33+
2934
function SparseCheckout([Array]$paths, [Hashtable]$repository)
3035
{
3136
$dir = $repository.WorkingDirectory

0 commit comments

Comments
 (0)