1#!/bin/sh
2#
3# Copyright (c) 2006 Junio C Hamano
4#
56
test_description='git read-tree --prefix test.
7'
89
. ./test-lib.sh
1011
test_expect_success setup '
12echo hello >one &&
13git update-index --add one &&
14tree=$(git write-tree) &&
15echo tree is $tree
16'
1718
echo 'one
19two/one' >expect
2021
test_expect_success 'read-tree --prefix' '
22git read-tree --prefix=two/ $tree &&
23git ls-files >actual &&
24cmp expect actual
25'
2627
test_done