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
9 . "$TEST_DIRECTORY"/lib-read-tree.sh
11 test_expect_success setup '
14 git commit -m initial &&
18 git commit -m second &&
19 git checkout -b side initial &&
27 test_expect_success 'multi-read' '
28 read_tree_must_succeed initial main side &&
29 test_write_lines a b/c >expect &&
30 git ls-files >actual &&
31 test_cmp expect actual