1#!/bin/sh23test_description='test read-tree into a fresh index file'45. ./test-lib.sh67test_expect_success setup '8echo one >a &&9git add a &&10git commit -m initial11'1213test_expect_success 'non-existent index file' '14rm -f new-index &&15GIT_INDEX_FILE=new-index git read-tree master16'1718test_expect_success 'empty index file' '19rm -f new-index &&20> new-index &&21GIT_INDEX_FILE=new-index git read-tree master22'2324test_done25