Sync eng/common directory with azure-sdk-tools for PR 1270 (#1151)
* resolve git longpath error when applying documentation updates Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
This commit is contained in:
parent
3eae7c130c
commit
a706396571
@ -21,6 +21,16 @@ parameters:
|
||||
CloseAfterOpenForTesting: false
|
||||
|
||||
steps:
|
||||
- pwsh: |
|
||||
if ($IsWindows) {
|
||||
REG ADD HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem /f /v LongPathsEnabled /t REG_DWORD /d 1
|
||||
git config --system core.longpaths true
|
||||
}
|
||||
else {
|
||||
Write-Host "This script is not executing on Windows, skipping registry modification."
|
||||
}
|
||||
displayName: Enable Long Paths if Necessary
|
||||
|
||||
- pwsh: |
|
||||
git clone https://github.com/${{ parameters.TargetDocRepoOwner }}/${{ parameters.TargetDocRepoName }} ${{ parameters.WorkingDirectory }}/repo
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user