t7800: improve test descriptions with empty arguments
[alt-git.git] / t / t1009-read-tree-new-index.sh
blobfc179ac5dd604a085c9a19a491f0abb7ac4c066f
1 #!/bin/sh
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
9 . ./test-lib.sh
11 test_expect_success setup '
12 echo one >a &&
13 git add a &&
14 git commit -m initial
17 test_expect_success 'non-existent index file' '
18 rm -f new-index &&
19 GIT_INDEX_FILE=new-index git read-tree main
22 test_expect_success 'empty index file' '
23 rm -f new-index &&
24 > new-index &&
25 GIT_INDEX_FILE=new-index git read-tree main
28 test_done