3 test_description='git am running from a subdirectory'
7 test_expect_success setup '
11 git commit -m initial &&
13 echo goodbye >world &&
16 git commit -m second &&
17 git format-patch --stdout HEAD^ >patchfile &&
21 test_expect_success 'am regularly from stdin' '
22 git checkout initial &&
24 git diff master >actual &&
25 test_cmp expect actual
28 test_expect_success 'am regularly from file' '
29 git checkout initial &&
31 git diff master >actual &&
32 test_cmp expect actual
35 test_expect_success 'am regularly from stdin in subdirectory' '
37 git checkout initial &&
43 git diff master>actual &&
44 test_cmp expect actual
47 test_expect_success 'am regularly from file in subdirectory' '
49 git checkout initial &&
55 git diff master >actual &&
56 test_cmp expect actual
59 test_expect_success 'am regularly from file in subdirectory with full path' '
61 git checkout initial &&
68 git diff master >actual &&
69 test_cmp expect actual