Skip to content

Commit

Permalink
fix: scripts/rebase-all.sh will fail due to too frequent remote opera…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
TaiYou-TW committed Mar 7, 2024
1 parent be6fb4a commit 95502c6
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions scripts/rebase-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
git checkout main

0 comments on commit 95502c6

Please sign in to comment.