aboutsummaryrefslogtreecommitdiff
path: root/t/t5801-remote-helpers.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-03-31 16:30:40 -0700
committerJunio C Hamano <gitster@pobox.com>2014-03-31 16:30:40 -0700
commitfa73d354689aa577d564b03d22f87c34b6288a78 (patch)
treed9b0fafb6bd690397265aae2d549489546dfe004 /t/t5801-remote-helpers.sh
parent96e67c86f817b4fbd492b12f57dae4bd821571ba (diff)
parent512477b175288a429aaf4071dc9fe94f17f0e4ee (diff)
downloadgit-fa73d354689aa577d564b03d22f87c34b6288a78.tar.gz
git-fa73d354689aa577d564b03d22f87c34b6288a78.tar.xz
Merge branch 'dt/tests-with-env-not-subshell'
* dt/tests-with-env-not-subshell: tests: use "env" to run commands with temporary env-var settings
Diffstat (limited to 't/t5801-remote-helpers.sh')
-rwxr-xr-xt/t5801-remote-helpers.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/t/t5801-remote-helpers.sh b/t/t5801-remote-helpers.sh
index c33cc2580..25fd2e7f4 100755
--- a/t/t5801-remote-helpers.sh
+++ b/t/t5801-remote-helpers.sh
@@ -231,10 +231,8 @@ test_expect_success 'proper failure checks for fetching' '
'
test_expect_success 'proper failure checks for pushing' '
- (GIT_REMOTE_TESTGIT_FAILURE=1 &&
- export GIT_REMOTE_TESTGIT_FAILURE &&
- cd local &&
- test_must_fail git push --all
+ (cd local &&
+ test_must_fail env GIT_REMOTE_TESTGIT_FAILURE=1 git push --all
)
'