Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 7ed863a85a6ce2c4ac4476848310b8f917ab41f9 authored by Junio C Hamano on 30 January 2011, 19:53:13 UTC
Git 1.7.4
Tip revision: 7ed863a
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