Skip to content

Commit d07211e

Browse files
Update patch
Replace git `switch` with `checkout` for backward compatibility
1 parent fc39938 commit d07211e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/patch

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ echo "* STAGING *"
138138
echo "************************************"
139139
echo ""
140140
# Create a blank branch to work on
141-
git switch --orphan tatter/scratch
141+
#git switch --orphan tatter/scratch
142+
git checkout --orphan tatter/scratch
143+
git rm -rf .
142144

143145
# Bring over just what we need to recreate the framework
144146
git checkout "$BASE" -- .gitignore composer.*
@@ -183,7 +185,8 @@ git commit -m "Patch framework" --no-verify
183185
rm composer.*
184186

185187
# Create the new branch from base
186-
git switch -c tatter/patches "$BASE"
188+
#git switch -c tatter/patches "$BASE"
189+
git checkout -b tatter/patches "$BASE"
187190

188191
# Restore the original state of vendor/
189192
composer install --no-scripts > /dev/null

0 commit comments

Comments
 (0)