Makefile: add QUIET_GEN to "cscope" target
[git/debian.git] / t / t1009-read-tree-new-index.sh
blob2935f68f8d215203ee1d2a9813de0039a89cb58f
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-lib.sh
10 test_expect_success setup '
11 echo one >a &&
12 git add a &&
13 git commit -m initial
16 test_expect_success 'non-existent index file' '
17 rm -f new-index &&
18 GIT_INDEX_FILE=new-index git read-tree main
21 test_expect_success 'empty index file' '
22 rm -f new-index &&
23 > new-index &&
24 GIT_INDEX_FILE=new-index git read-tree main
27 test_done