From a696dc6b8c5a62ff42627e17973c43237b637e0f Mon Sep 17 00:00:00 2001 From: John Ballesteros <89079900+johnshift@users.noreply.github.com> Date: Wed, 15 May 2024 08:44:34 +0800 Subject: [PATCH] fix: pull script typo (#8) --- scripts/pull-remote.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/pull-remote.js b/scripts/pull-remote.js index 3680e73f..2a857435 100644 --- a/scripts/pull-remote.js +++ b/scripts/pull-remote.js @@ -6,18 +6,18 @@ const util = require('node:util'); const exec = util.promisify(require('node:child_process').exec); -(async function () { +const MAIN_BRANCH = 'main'(async function () { try { // Get branch name const { stdout: branchName } = await exec( 'git rev-parse --abbrev-ref HEAD', ); - // Checkout app-router - await exec('git checkout app-router'); + // Checkout main + await exec(`git checkout ${MAIN_BRANCH}`); - // Pull origin app-router - await exec('git pull origin app-router'); + // Pull origin main + await exec(`git pull origin ${MAIN_BRANCH}`); // Delete local feature-branch await exec(`git branch -D ${branchName}`);