Skip to content

Commit

Permalink
Fix flaky test "rebase in a sub, was conflicted" (fixes #864)
Browse files Browse the repository at this point in the history
Make a branch for the original commit of the conflicted rebase so that
`git gc` isn't inclined to garbage-collect it.
  • Loading branch information
geofft committed Jun 10, 2022
1 parent ced6ad4 commit a6eb8a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/test/util/submodule_rebase_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,9 @@ x=E:CM-3 s=Sa:qs;Bmaster=M;Os Cqs-r q=q!H=qs!E`,
"rebase in a sub, was conflicted": {
initial: `
a=B:Cq-1;Cr-1;Bq=q;Br=r|
x=U:C3-2 s=Sa:q;Bmaster=3;I *s=S:1*S:r*S:q;Os EHEAD,q,r!I q=q`,
x=U:C3-2 s=Sa:q;Bmaster=3;I *s=S:1*S:r*S:q;Os EHEAD,q,r!I q=q!Bq=q`,
expected: `
x=E:CM-3 s=Sa:qs;Bmaster=M;I s=~;Os Cqs-r q=q!H=qs!E`,
x=E:CM-3 s=Sa:qs;Bmaster=M;I s=~;Os Cqs-r q=q!H=qs!E!Bq=q`,
baseCommit: "3",
},
"rebase two in a sub": {
Expand Down

0 comments on commit a6eb8a1

Please sign in to comment.