Skip to content

Commit e2b8057

Browse files
committed
fix: scripts/rebase-all.sh will fail due to too frequent remote operation
1 parent 2233c14 commit e2b8057

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

scripts/rebase-all.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,11 @@ for branch in $(git branch -r | grep -v HEAD); do
1212
echo "Checkout failed for branch $branch"
1313
exit 1
1414
fi
15-
git pull origin "$branch"
16-
if [[ $? -ne 0 ]]; then
17-
echo "Pull failed for branch $branch"
18-
exit 1
19-
fi
2015
git rebase main
2116
if [[ $? -ne 0 ]]; then
2217
echo "Rebase failed for branch $branch"
2318
exit 1
2419
fi
25-
git push origin "$branch"
2620
fi
2721
done
2822

0 commit comments

Comments
 (0)