3 test_description='test cherry-picking a root commit'
7 test_expect_success setup '
12 git commit -m "first" &&
14 git symbolic-ref HEAD refs/heads/second &&
15 rm .git/index file1 &&
16 echo second > file2 &&
19 git commit -m "second"
23 test_expect_success 'cherry-pick a root commit' '
25 git cherry-pick master &&
26 test first = $(cat file1)