Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 82c3e210002d452867a46a9d8806a8aee82ae9d0 authored by Junio C Hamano on 29 August 2009, 21:31:01 UTC
GIT 1.6.4.2
Tip revision: 82c3e21
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