Skip to content

Commit 4de2c8d

Browse files
authored
Merge pull request #414 from loopandlearn/update_release_script
remove --3way and add pauses
2 parents 4aa57ac + 71e7efb commit 4de2c8d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

release.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,19 @@ update_follower () {
3434
echo; echo "🔄 Updating $DIR"
3535
cd "$DIR"
3636

37+
echo; echo "If there are custom changes needed to the patch, make the change before continuing"
38+
pause
39+
3740
# 1 · Make sure we’re on a clean, up-to-date main
3841
echo_run git switch "$MAIN_BRANCH"
3942
echo_run git fetch
4043
echo_run git pull
4144

42-
# 2 · Apply the patch with 3-way fallback
43-
if ! git apply --3way --whitespace=nowarn "$PATCH_FILE"; then
45+
# 2 · Apply the patch. Do not use 3way because commit history is not in common
46+
if ! git apply --whitespace=nowarn "$PATCH_FILE"; then
4447
echo "‼️ Some hunks could not be merged automatically."
48+
echo; echo "Use a different terminal to fix files before continuing"
49+
pause
4550
fi
4651

4752
# 3 · Pause if any conflict markers remain

0 commit comments

Comments
 (0)