diff options
author | Brandon Casey <drafnel@gmail.com> | 2010-07-21 01:55:31 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-07-21 22:54:34 +0400 |
commit | b1edaf669d483e983f1849ce804baa178387e9a9 (patch) | |
tree | 3cf240aa76f0576088b379384891d54aa05eb6bf /t/t3301-notes.sh | |
parent | bdcaa325b47fcacfecb781a28801aafc249ba288 (diff) |
t/: work around one-shot variable assignment with test_must_fail
See e2007832552ccea9befed9003580c494f09e666e
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3301-notes.sh')
-rwxr-xr-x | t/t3301-notes.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/t3301-notes.sh b/t/t3301-notes.sh index 2d67a40fc1..1d82f79ee0 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 ' |