Merge branch 'jc/graduate-remote-hg-bzr' (early part)
[gitweb.git] / t / t5801-remote-helpers.sh
index c33cc25805d2a913725355a183118a0dd5547800..25fd2e7f46cb559372125e08671445476cbf6022 100755 (executable)
@@ -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
        )
 '