From 9583f7dabbef31c716a353364b599b3c3c2dd754 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Tue, 17 Mar 2020 09:35:58 -0700 Subject: [PATCH] build: update release scripts to handle a remote master (#22707) --- script/lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/lib/utils.js b/script/lib/utils.js index 0074d27c0a35..e4ad5dca4f07 100644 --- a/script/lib/utils.js +++ b/script/lib/utils.js @@ -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)