Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 1270 (#15766)
Browse files Browse the repository at this point in the history
* resolve git longpath error when applying documentation updates


Co-authored-by: scbedd <45376673+scbedd@users.noreply.github.com>
  • Loading branch information
azure-sdk and scbedd authored Dec 11, 2020
1 parent 2b894b8 commit 3808ad5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions eng/common/pipelines/templates/steps/docs-metadata-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3808ad5

Please sign in to comment.