3 test_description
='test multi-tree read-tree without merging'
5 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
=main
6 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
8 TEST_PASSES_SANITIZE_LEAK
=true
10 .
"$TEST_DIRECTORY"/lib-read-tree.sh
12 test_expect_success setup
'
15 git commit -m initial &&
19 git commit -m second &&
20 git checkout -b side initial &&
28 test_expect_success
'multi-read' '
29 read_tree_must_succeed initial main side &&
30 test_write_lines a b/c >expect &&
31 git ls-files >actual &&
32 test_cmp expect actual