From b9916b8b8d56ac149c84552254f3534f75a6a8dc Mon Sep 17 00:00:00 2001 From: Miodec Date: Wed, 26 Mar 2025 18:19:36 +0100 Subject: [PATCH] chore: trim branch string --- packages/release/src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/release/src/index.js b/packages/release/src/index.js index b8892d8fe..f6480e02d 100755 --- a/packages/release/src/index.js +++ b/packages/release/src/index.js @@ -56,7 +56,9 @@ const runProjectRootCommand = (command, force) => { const checkBranchSync = () => { console.log("Checking if local branch is master..."); - const currentBranch = runProjectRootCommand("git branch --show-current"); + const currentBranch = runProjectRootCommand( + "git branch --show-current" + ).trim(); if (currentBranch !== "master") { console.error( "Local branch is not master. Please checkout the master branch."