test(e2e): the fork-sync kill matches the local merge of refs/remotes/upstream/main
The updater's fork sync fast-forwards with `git -c ... merge --ff-only refs/remotes/upstream/main` (custody flags before the subcommand, the full ref name): match the subcommand and the ref, not one exact argv string. (cherry picked from commit 4d8f81926eac53216a81437568b29a0b4136dfe1) (cherry picked from commit 310010b489ed22d042cdb7b15b98f3b42675b362)
This commit is contained in:
@@ -290,7 +290,7 @@ def test_failed_upstream_sync_after_origin_pull_keeps_the_tail_owed(world):
|
||||
# its next branch check once the upstream merge has failed (and been settled).
|
||||
_hostile_git(world, 'case " $* " in *" remote get-url origin "*) echo https://github.com/e2e-fork/hermes-agent.git; '
|
||||
'exit 0;; esac\n'
|
||||
f'case " $* " in *" merge --ff-only upstream/main "*) "$REAL" "$@"; rc=$?; '
|
||||
f'case " $* " in *" merge --ff-only "*"upstream/main "*) "$REAL" "$@"; rc=$?; '
|
||||
f'[ $rc != 0 ] && touch "{flag}"; exit $rc;; esac\n'
|
||||
f'if [ -e "{flag}" ]; then case " $* " in *" rev-parse --abbrev-ref HEAD "*) '
|
||||
'kill -KILL $PPID; exit 137;; esac; fi')
|
||||
|
||||
Reference in New Issue
Block a user