X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft3301-notes.sh;h=1d82f79ee07e8f9317bc23c49cdf941af36ce3ff;hb=7e7db5e4520388d3a6f1efbe2f7a29d43bd06a2b;hp=2d67a40fc16385b8bee37968f4058b094a174a98;hpb=53b304224a561b5fd4ae35cedc0a978d91d4b1da;p=git.git diff --git a/t/t3301-notes.sh b/t/t3301-notes.sh index 2d67a40fc..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 '