mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
build: update release scripts to handle a remote master (#22707)
This commit is contained in:
@@ -82,7 +82,7 @@ async function getCurrentBranch (gitDir) {
|
||||
'--remote'
|
||||
], gitDir)).split('\n')
|
||||
|
||||
branch = branches.filter(b => b.trim() === 'master' || RELEASE_BRANCH_PATTERN.test(b.trim()))[0]
|
||||
branch = branches.filter(b => b.trim() === 'master' || b.trim() === 'origin/master' || RELEASE_BRANCH_PATTERN.test(b.trim()))[0]
|
||||
if (!branch) {
|
||||
console.log(`${fail} no release branch exists for this ref`)
|
||||
process.exit(1)
|
||||
|
||||
Reference in New Issue
Block a user