diff options
author | Brandon Casey <drafnel@gmail.com> | 2010-07-20 16:55:31 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-07-21 11:54:34 -0700 |
commit | b1edaf669d483e983f1849ce804baa178387e9a9 (patch) | |
tree | 3cf240aa76f0576088b379384891d54aa05eb6bf /t/t3200-branch.sh | |
parent | bdcaa325b47fcacfecb781a28801aafc249ba288 (diff) | |
download | git-b1edaf669d483e983f1849ce804baa178387e9a9.tar.gz |
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/t3200-branch.sh')
-rwxr-xr-x | t/t3200-branch.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh index 859b99abf1..bf7747dc33 100755 --- a/t/t3200-branch.sh +++ b/t/t3200-branch.sh @@ -237,7 +237,11 @@ test_expect_success 'checkout -b does not make reflog when core.logAllRefUpdates git config core.logAllRefUpdates false && git checkout -b beta && ! test -f .git/logs/refs/heads/beta && - test_must_fail PAGER= git reflog show beta + ( + PAGER= && + export PAGER && + test_must_fail git reflog show beta + ) ' test_expect_success 'checkout -b with -l makes reflog when core.logAllRefUpdates = false' ' |