File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ echo "Base Branch: $BASE"
126126echo " Selected Items: $ITEMS "
127127
128128# From here on everything is destructive (but reversible) so we want hard stops
129- set -ex
129+ set -e
130130
131131# Create a blank branch to work on
132132git switch --orphan tatter/scratch
@@ -176,7 +176,11 @@ rm composer.*
176176# Create the new branch from base
177177git switch -c tatter/patches " $BASE "
178178
179+ # Restore the original state of vendor/
180+ composer install > /dev/null
181+
179182# Attempt the merge
183+ set +e
180184git cherry-pick tatter/scratch
181185
182186if [ $? -eq 0 ]; then
188192git status
189193
190194# Conflict: explain and exit
195+ echo " "
191196echo " Conflicts detected during patch! Follow the git instructions for resolution."
192197echo " Once resolution is complete your changes will be available on branch tatter/patches"
193198echo " and you should remove the old working branch at tatter/scratch."
199+ echo " "
194200
195201exit 1
You can’t perform that action at this time.
0 commit comments