File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,8 +69,7 @@ for f in $(cd /work/patches && find . -name '*.patch' -o -name '*.diff' | sort);
6969 # with the next patch if it succeeds.
7070 git am --3way " /work/patches/$f " && continue
7171 # Okay it failed, let's clean up and try the next option.
72- git reset HEAD .
73- git checkout -- .
72+ git am --abort
7473 git clean -fdx
7574 echo " === using patch(1) to apply patch $f ==="
7675 if ! ($PATCH_CMD -p1 --no-backup-if-mismatch -V none -f -N < " /work/patches/$f " && git add .); then
Original file line number Diff line number Diff line change @@ -151,8 +151,7 @@ for f in $(cd /work/patches && find . -name '*.patch' -o -name '*.diff' | sort);
151151 # with the next patch if it succeeds.
152152 git am --3way "/work/patches/$f" && continue
153153 # Okay it failed, let's clean up and try the next option.
154- git reset HEAD .
155- git checkout -- .
154+ git am --abort
156155 git clean -fdx
157156 echo "=== using patch(1) to apply patch $f ==="
158157 if ! ($PATCH_CMD -p1 --no-backup-if-mismatch -V none -f -N <"/work/patches/$f" && git add .); then
You can’t perform that action at this time.
0 commit comments