1#!/bin/sh
23
test_description='test read-tree into a fresh index file'
45
. ./test-lib.sh
67
test_expect_success setup '
8echo one >a &&
9git add a &&
10git commit -m initial
11'
1213
test_expect_success 'non-existent index file' '
14rm -f new-index &&
15GIT_INDEX_FILE=new-index git read-tree master
16'
1718
test_expect_success 'empty index file' '
19rm -f new-index &&
20> new-index &&
21GIT_INDEX_FILE=new-index git read-tree master
22'
2324
test_done
25