summaryrefslogtreecommitdiff
path: root/t/t3200-branch.sh
diff options
context:
space:
mode:
authorBrandon Casey <drafnel@gmail.com>2010-07-20 21:55:31 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-07-21 18:54:34 (GMT)
commitb1edaf669d483e983f1849ce804baa178387e9a9 (patch)
tree3cf240aa76f0576088b379384891d54aa05eb6bf /t/t3200-branch.sh
parentbdcaa325b47fcacfecb781a28801aafc249ba288 (diff)
downloadgit-b1edaf669d483e983f1849ce804baa178387e9a9.zip
git-b1edaf669d483e983f1849ce804baa178387e9a9.tar.gz
git-b1edaf669d483e983f1849ce804baa178387e9a9.tar.bz2
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-xt/t3200-branch.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
index 859b99a..bf7747d 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' '