Skip to content

Commit ce657e4

Browse files
committed
Fix #323: Always accept local changes to resolve merge conflicts
1 parent 69aee62 commit ce657e4

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

bench_runner/templates/_benchmark.src.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,11 @@ jobs:
130130
run: |
131131
# Another benchmarking task may have created results for the same
132132
# commit while the above was running. This "magic" incantation means
133-
# that any local results for this commit will override anything we
134-
# just pulled in in that case.
135-
git pull -s recursive -X ours --autostash --rebase
133+
# that any local results for this commit will override anything that
134+
# happened in the meantime.
135+
# https://stackoverflow.com/questions/43770520/how-to-specify-default-merge-strategy-on-git-stash-pop
136+
git stash
137+
git cherry-pick -n -m1 -Xtheirs stash
136138
- name: Add data to repo
137139
if: ${{ steps.should_run.outputs.should_run != 'false' }}
138140
uses: EndBug/add-and-commit@v9
@@ -227,9 +229,11 @@ jobs:
227229
run: |
228230
# Another benchmarking task may have created results for the same
229231
# commit while the above was running. This "magic" incantation means
230-
# that any local results for this commit will override anything we
231-
# just pulled in in that case.
232-
git pull -s recursive -X ours --autostash --rebase
232+
# that any local results for this commit will override anything that
233+
# happened in the meantime.
234+
# https://stackoverflow.com/questions/43770520/how-to-specify-default-merge-strategy-on-git-stash-pop
235+
git stash
236+
git cherry-pick -n -m1 -Xtheirs stash
233237
- name: Adding data to repo
234238
if: ${{ steps.should_run.outputs.should_run != 'false' && !inputs.perf }}
235239
uses: EndBug/add-and-commit@v9
@@ -321,9 +325,11 @@ jobs:
321325
run: |
322326
# Another benchmarking task may have created results for the same
323327
# commit while the above was running. This "magic" incantation means
324-
# that any local results for this commit will override anything we
325-
# just pulled in in that case.
326-
git pull -s recursive -X ours --autostash --rebase
328+
# that any local results for this commit will override anything that
329+
# happened in the meantime.
330+
# https://stackoverflow.com/questions/43770520/how-to-specify-default-merge-strategy-on-git-stash-pop
331+
git stash
332+
git cherry-pick -n -m1 -Xtheirs stash
327333
- name: Add data to repo
328334
if: ${{ steps.should_run.outputs.should_run != 'false' }}
329335
uses: EndBug/add-and-commit@v9

0 commit comments

Comments
 (0)