File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
pipelines/templates/steps Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 55- pwsh : |
66 $setDefaultBranch = (git remote show ${{ parameters.RemoteRepo }} | Out-String) -replace "(?ms).*HEAD branch: (\w+).*", '$1'
77 if ($LASTEXITCODE -ne 0) {
8- Write-Host "Not able to fetch the default branch from git command. Set to master ."
9- $setDefaultBranch = 'master '
8+ Write-Host "Not able to fetch the default branch from git command. Set to main ."
9+ $setDefaultBranch = 'main '
1010 }
1111 Write-Host "Setting DefaultBranch=$setDefaultBranch"
1212 Write-Host "##vso[task.setvariable variable=DefaultBranch]$setDefaultBranch"
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ param (
2424
2525. (Join-Path $PSScriptRoot common.ps1)
2626
27- $releaseReplaceRegex = " (https://github.com/$RepoId /(?:blob|tree)/)master "
27+ $releaseReplaceRegex = " (https://github.com/$RepoId /(?:blob|tree)/)main "
2828
2929function GetMetaData {
3030 if (Test-Path Variable:MetadataUri) {
You can’t perform that action at this time.
0 commit comments