Merge branch 'js/misc-git-gui-stuff' of ../git-gui
[alt-git.git] / t / t1003-read-tree-prefix.sh
blobb6111cd150fdd69973142808cf4a86a4fa6b7e76
1 #!/bin/sh
3 # Copyright (c) 2006 Junio C Hamano
6 test_description='git read-tree --prefix test.
9 . ./test-lib.sh
11 test_expect_success setup '
12 echo hello >one &&
13 git update-index --add one &&
14 tree=$(git write-tree) &&
15 echo tree is $tree
18 echo 'one
19 two/one' >expect
21 test_expect_success 'read-tree --prefix' '
22 git read-tree --prefix=two/ $tree &&
23 git ls-files >actual &&
24 cmp expect actual
27 test_done