3 test_description
='git rebase across mode change'
5 TEST_PASSES_SANITIZE_LEAK
=true
8 test_expect_success
'setup' '
19 test_ln_s_add unrelated DS &&
20 git commit -m side1 &&
25 git commit -m commit1 &&
28 git commit -am commit2
31 test_expect_success
'rebase changes with the apply backend' '
32 test_when_finished "git rebase --abort || true" &&
33 git checkout -b apply-backend side2 &&
37 test_expect_success
'rebase changes with the merge backend' '
38 test_when_finished "git rebase --abort || true" &&
39 git checkout -b merge-backend side2 &&
43 test_expect_success
'rebase changes with the merge backend with a delay' '
44 test_when_finished "git rebase --abort || true" &&
45 git checkout -b merge-delay-backend side2 &&
46 git rebase -m --exec "sleep 1" side1