Sync eng/common directory with azure-sdk-tools for PR 7634 (#1509)
* 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:
Родитель
11307a4df3
Коммит
0b1c3382f8
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче