Revision 341e7e8eda3dbeb6867f4f8f45b671201b807de5 authored by Junio C Hamano on 25 June 2014, 19:21:11 UTC, committed by Junio C Hamano on 25 June 2014, 19:21:11 UTC
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 62bfd83
Raw File
t1009-read-tree-new-index.sh
#!/bin/sh

test_description='test read-tree into a fresh index file'

. ./test-lib.sh

test_expect_success setup '
	echo one >a &&
	git add a &&
	git commit -m initial
'

test_expect_success 'non-existent index file' '
	rm -f new-index &&
	GIT_INDEX_FILE=new-index git read-tree master
'

test_expect_success 'empty index file' '
	rm -f new-index &&
	> new-index &&
	GIT_INDEX_FILE=new-index git read-tree master
'

test_done

back to top