3 test_description
='test read-tree into a fresh index file'
5 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
=main
6 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
8 TEST_PASSES_SANITIZE_LEAK
=true
11 test_expect_success setup
'
17 test_expect_success
'non-existent index file' '
19 GIT_INDEX_FILE=new-index git read-tree main
22 test_expect_success
'empty index file' '
25 GIT_INDEX_FILE=new-index git read-tree main