Skip to content

Commit 95502c6

Browse files
committed
fix: scripts/rebase-all.sh will fail due to too frequent remote operation
1 parent be6fb4a commit 95502c6

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

scripts/rebase-all.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,12 @@ 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

29-
git checkout main
23+
git checkout main

0 commit comments

Comments
 (0)