Skip to content

Commit 24b258c

Browse files
Fix hard-coded master (Azure#19333)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
1 parent d393021 commit 24b258c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

eng/common/pipelines/templates/steps/set-default-branch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ steps:
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"

eng/common/scripts/update-docs-metadata.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

2929
function GetMetaData {
3030
if (Test-Path Variable:MetadataUri) {

0 commit comments

Comments
 (0)