3 test_description='test cherry-picking an empty commit'
7 test_expect_success setup '
12 git commit -m "first" &&
14 git checkout -b empty-branch &&
16 git commit --allow-empty -m "empty"
20 test_expect_code 1 'cherry-pick an empty commit' '
22 git checkout master &&
23 git cherry-pick empty-branch
27 test_expect_success 'index lockfile was removed' '
29 test ! -f .git/index.lock