Skip to content

Commit b9916b8

Browse files
committed
chore: trim branch string
1 parent 80a2492 commit b9916b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/release/src/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ const runProjectRootCommand = (command, force) => {
5656

5757
const checkBranchSync = () => {
5858
console.log("Checking if local branch is master...");
59-
const currentBranch = runProjectRootCommand("git branch --show-current");
59+
const currentBranch = runProjectRootCommand(
60+
"git branch --show-current"
61+
).trim();
6062
if (currentBranch !== "master") {
6163
console.error(
6264
"Local branch is not master. Please checkout the master branch."

0 commit comments

Comments
 (0)