aboutsummaryrefslogtreecommitdiff
path: root/t/t3301-notes.sh
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2010-07-20 16:55:31 -0500
committerJunio C Hamano <gitster@pobox.com>2010-07-21 11:54:34 -0700
commitb1edaf669d483e983f1849ce804baa178387e9a9 (patch)
tree3cf240aa76f0576088b379384891d54aa05eb6bf /t/t3301-notes.sh
parentbdcaa325b47fcacfecb781a28801aafc249ba288 (diff)
downloadgit-b1edaf669d483e983f1849ce804baa178387e9a9.tar.gz
git-b1edaf669d483e983f1849ce804baa178387e9a9.tar.xz
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-xt/t3301-notes.sh6
1 files changed, 5 insertions, 1 deletions
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
'