3 test_description='apply same filename'
7 test_expect_success 'setup' '
9 mkdir -p some/sub/dir &&
10 echo Hello > some/sub/dir/file &&
11 git add some/sub/dir/file
16 diff a/bla/blub/dir/file b/bla/blub/dir/file
17 --- a/bla/blub/dir/file
18 +++ b/bla/blub/dir/file
24 test_expect_success 'apply --root -p --index' '
26 git apply --root=some/sub -p3 --index patch &&
27 test Bello = $(git show :some/sub/dir/file) &&
28 test Bello = $(cat some/sub/dir/file)