Merge branch 'ao/send-email-irt'
[git/kirr.git] / t / t3503-cherry-pick-root.sh
blobb0faa299183df5fe06ccaf383bce47cbb9a0cf89
1 #!/bin/sh
3 test_description='test cherry-picking a root commit'
5 . ./test-lib.sh
7 test_expect_success setup '
9 echo first > file1 &&
10 git add file1 &&
11 test_tick &&
12 git commit -m "first" &&
14 git symbolic-ref HEAD refs/heads/second &&
15 rm .git/index file1 &&
16 echo second > file2 &&
17 git add file2 &&
18 test_tick &&
19 git commit -m "second"
23 test_expect_success 'cherry-pick a root commit' '
25 git cherry-pick master &&
26 test first = $(cat file1)
30 test_done