mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-06 05:26:54 +08:00
chore: trim branch string
This commit is contained in:
parent
80a2492a06
commit
b9916b8b8d
1 changed files with 3 additions and 1 deletions
|
@ -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."
|
||||
|
|
Loading…
Add table
Reference in a new issue