Sync eng/common directory with azure-sdk-tools for PR 7634 (#5323)
* Fix sparse-checkout git command line behavior * Use command arg parsing behavior in sparse-checkout.yml --------- Co-authored-by: Daniel Jurek <djurek@microsoft.com>
This commit is contained in:
parent
7c751a503b
commit
dcc15a63a0
@ -26,6 +26,11 @@ steps:
|
||||
# Define this inline, because of the chicken/egg problem with loading a script when nothing
|
||||
# has been checked out yet.
|
||||
script: |
|
||||
# Setting $PSNativeCommandArgumentPassing to 'Legacy' to use PowerShell
|
||||
# 7.2 behavior for command argument passing. Newer behaviors will result
|
||||
# in errors from git.exe.
|
||||
$PSNativeCommandArgumentPassing = 'Legacy'
|
||||
|
||||
function SparseCheckout([Array]$paths, [Hashtable]$repository)
|
||||
{
|
||||
$dir = $repository.WorkingDirectory
|
||||
|
||||
Loading…
Reference in New Issue
Block a user