Merge branch 'mm/phrase-remote-tracking'
[git/kirr.git] / t / t1009-read-tree-new-index.sh
blob59b3aa4bc40225b753626a0b94f555a8a1a02fcd
1 #!/bin/sh
3 test_description='test read-tree into a fresh index file'
5 . ./test-lib.sh
7 test_expect_success setup '
8 echo one >a &&
9 git add a &&
10 git commit -m initial
13 test_expect_success 'non-existent index file' '
14 rm -f new-index &&
15 GIT_INDEX_FILE=new-index git read-tree master
18 test_expect_success 'empty index file' '
19 rm -f new-index &&
20 > new-index &&
21 GIT_INDEX_FILE=new-index git read-tree master
24 test_done