1#!/bin/sh2#3# Copyright (c) 2006 Junio C Hamano4#56test_description='git read-tree --prefix test.7'89. ./test-lib.sh1011test_expect_success setup '12echo hello >one &&13git update-index --add one &&14tree=$(git write-tree) &&15echo tree is $tree16'1718echo 'one19two/one' >expect2021test_expect_success 'read-tree --prefix' '22git read-tree --prefix=two/ $tree &&23git ls-files >actual &&24cmp expect actual25'2627test_done