blob: 48ab117d755ca606a09d848af9747e24ea13a26f [file] [log] [blame]
Junio C Hamanoc43ce6d2006-08-03 14:41:29 -07001#!/bin/sh
2#
3# Copyright (c) 2006 Junio C Hamano
4#
5
6test_description='git-read-tree --prefix test.
7'
8
9. ./test-lib.sh
10
11test_expect_success setup '
12 echo hello >one &&
13 git-update-index --add one &&
14 tree=`git-write-tree` &&
15 echo tree is $tree
16'
17
18echo 'one
19two/one' >expect
20
21test_expect_success 'read-tree --prefix' '
22 git-read-tree --prefix=two/ $tree &&
23 git-ls-files >actual &&
24 cmp expect actual
25'
26
27test_done