Windows ANSI - hook write()
[git/mingw/4msysgit/peterh.git] / t / t1005-read-tree-reset.sh
blobb0d31f5a9bb8b3474665147327d94ad5067fa206
1 #!/bin/sh
3 test_description='read-tree -u --reset'
5 . ./test-lib.sh
7 # two-tree test
9 test_expect_success 'setup' '
10 git init &&
11 mkdir df &&
12 echo content >df/file &&
13 git add df/file &&
14 git commit -m one &&
15 git ls-files >expect &&
16 rm -rf df &&
17 echo content >df &&
18 git add df &&
19 echo content >new &&
20 git add new &&
21 git commit -m two
24 test_expect_success 'reset should work' '
25 git read-tree -u --reset HEAD^ &&
26 git ls-files >actual &&
27 test_cmp expect actual
30 test_done