Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: c7c84859ad586ae5670224e1abc4f846f7c3a9ae authored by Junio C Hamano on 16 June 2007, 06:58:18 UTC
GIT 1.5.2.2
Tip revision: c7c8485
t1003-read-tree-prefix.sh
#!/bin/sh
#
# Copyright (c) 2006 Junio C Hamano
#

test_description='git-read-tree --prefix test.
'

. ./test-lib.sh

test_expect_success setup '
	echo hello >one &&
	git-update-index --add one &&
	tree=`git-write-tree` &&
	echo tree is $tree
'

echo 'one
two/one' >expect

test_expect_success 'read-tree --prefix' '
	git-read-tree --prefix=two/ $tree &&
	git-ls-files >actual &&
	cmp expect actual
'

test_done
back to top