From 95502c6910e62cd9d6cb0003ffc465d55d9a458a Mon Sep 17 00:00:00 2001 From: TaiYou-TW Date: Thu, 7 Mar 2024 22:12:35 +0800 Subject: [PATCH] fix: scripts/rebase-all.sh will fail due to too frequent remote operation --- scripts/rebase-all.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/rebase-all.sh b/scripts/rebase-all.sh index 26eef16b..6e104473 100755 --- a/scripts/rebase-all.sh +++ b/scripts/rebase-all.sh @@ -12,18 +12,12 @@ for branch in $(git branch -r | grep -v HEAD); do echo "Checkout failed for branch $branch" exit 1 fi - git pull origin "$branch" - if [[ $? -ne 0 ]]; then - echo "Pull failed for branch $branch" - exit 1 - fi git rebase main if [[ $? -ne 0 ]]; then echo "Rebase failed for branch $branch" exit 1 fi - git push origin "$branch" fi done -git checkout main \ No newline at end of file +git checkout main