]> git.ipfire.org Git - thirdparty/git.git/blob - t/t1009-read-tree-new-index.sh
path.c: don't call the match function without value in trie_find()
[thirdparty/git.git] / t / t1009-read-tree-new-index.sh
1 #!/bin/sh
2
3 test_description='test read-tree into a fresh index file'
4
5 . ./test-lib.sh
6
7 test_expect_success setup '
8 echo one >a &&
9 git add a &&
10 git commit -m initial
11 '
12
13 test_expect_success 'non-existent index file' '
14 rm -f new-index &&
15 GIT_INDEX_FILE=new-index git read-tree master
16 '
17
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
22 '
23
24 test_done
25