X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3505-cherry-pick-empty.sh;h=e51e505a9fb902ec7d4cedfa32052f03a04e612e;hb=880bd9d08081752bb4e2891aa3c16c82808ecb2e;hp=9aaeabd972ffd3009fb62b9884516cc876bbb35f;hpb=09236d80480c15f6da804e56a80c08d320475fb1;p=git.git diff --git a/t/t3505-cherry-pick-empty.sh b/t/t3505-cherry-pick-empty.sh index 9aaeabd97..e51e505a9 100755 --- a/t/t3505-cherry-pick-empty.sh +++ b/t/t3505-cherry-pick-empty.sh @@ -17,11 +17,11 @@ test_expect_success setup ' ' -test_expect_code 1 'cherry-pick an empty commit' ' - - git checkout master && - git cherry-pick empty-branch - +test_expect_success 'cherry-pick an empty commit' ' + git checkout master && { + git cherry-pick empty-branch + test "$?" = 1 + } ' test_expect_success 'index lockfile was removed' '