chore: trim branch string

This commit is contained in:
Miodec 2025-03-26 18:19:36 +01:00
parent 80a2492a06
commit b9916b8b8d

View file

@ -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."