X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3301-notes.sh;h=1d82f79ee07e8f9317bc23c49cdf941af36ce3ff;hb=b6b84d1b7458676d2564ac7f8dad8a10bf900239;hp=64f32ad94dfe842746774596b88c91e873da864f;hpb=443f26cbcac66368eb0ec8a8a250bf5815ad0a10;p=git.git diff --git a/t/t3301-notes.sh b/t/t3301-notes.sh index 64f32ad94..1d82f79ee 100755 --- a/t/t3301-notes.sh +++ b/t/t3301-notes.sh @@ -693,7 +693,11 @@ test_expect_success 'create note from non-existing note with "git notes add -c" git add a10 && test_tick && git commit -m 10th && - test_must_fail MSG="yet another note" git notes add -c deadbeef && + ( + MSG="yet another note" && + export MSG && + test_must_fail git notes add -c deadbeef + ) && test_must_fail git notes list HEAD ' @@ -1044,4 +1048,10 @@ test_expect_success 'GIT_NOTES_REWRITE_REF overrides config' ' git log -1 > output && test_cmp expect output ' + +test_expect_success 'git notes copy diagnoses too many or too few parameters' ' + test_must_fail git notes copy && + test_must_fail git notes copy one two three +' + test_done