summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-05-14 19:06:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-05-20 00:09:57 (GMT)
commit10e1feebb454d99eb6644cc53b94255f40e6fe9c (patch)
treecdd92ca11b48b6b50865f62251c40d82bf1f246e /t
parentb28aeab4ec1df28f3be3cb62ff4b85e5332d8d13 (diff)
downloadgit-10e1feebb454d99eb6644cc53b94255f40e6fe9c.zip
git-10e1feebb454d99eb6644cc53b94255f40e6fe9c.tar.gz
git-10e1feebb454d99eb6644cc53b94255f40e6fe9c.tar.bz2
Revert "Merge branch 'fc/transport-helper-sync-error-fix'"
This reverts commit d508e4a8e2391ae2596403b6478d01cf3d5f928f, reversing changes made to e42552135a2a396f37053a89f44952ea907870b2. The author of the original topic says he broke the upcoming 2.0 release with something that relates to "synchronization crash regression" while refusing to give further specifics, so this would unfortunately be the safest option for the upcoming release. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
-rwxr-xr-xt/t5801-remote-helpers.sh31
1 files changed, 8 insertions, 23 deletions
diff --git a/t/t5801-remote-helpers.sh b/t/t5801-remote-helpers.sh
index a00a660..25fd2e7 100755
--- a/t/t5801-remote-helpers.sh
+++ b/t/t5801-remote-helpers.sh
@@ -212,30 +212,19 @@ test_expect_success 'push update refs failure' '
echo "update fail" >>file &&
git commit -a -m "update fail" &&
git rev-parse --verify testgit/origin/heads/update >expect &&
- test_expect_code 1 env GIT_REMOTE_TESTGIT_FAILURE="non-fast forward" \
- git push origin update &&
+ GIT_REMOTE_TESTGIT_PUSH_ERROR="non-fast forward" &&
+ export GIT_REMOTE_TESTGIT_PUSH_ERROR &&
+ test_expect_code 1 git push origin update &&
git rev-parse --verify testgit/origin/heads/update >actual &&
test_cmp expect actual
)
'
-clean_mark () {
- cut -f 2 -d ' ' "$1" |
- git cat-file --batch-check |
- grep commit |
- sort >$(basename "$1")
-}
-
-cmp_marks () {
- test_when_finished "rm -rf git.marks testgit.marks" &&
- clean_mark ".git/testgit/$1/git.marks" &&
- clean_mark ".git/testgit/$1/testgit.marks" &&
- test_cmp git.marks testgit.marks
-}
-
test_expect_success 'proper failure checks for fetching' '
- (cd local &&
- test_must_fail env GIT_REMOTE_TESTGIT_FAILURE=1 git fetch 2>error &&
+ (GIT_REMOTE_TESTGIT_FAILURE=1 &&
+ export GIT_REMOTE_TESTGIT_FAILURE &&
+ cd local &&
+ test_must_fail git fetch 2> error &&
cat error &&
grep -q "Error while running fast-import" error
)
@@ -243,11 +232,7 @@ test_expect_success 'proper failure checks for fetching' '
test_expect_success 'proper failure checks for pushing' '
(cd local &&
- git checkout -b crash master &&
- echo crash >>file &&
- git commit -a -m crash &&
- test_must_fail env GIT_REMOTE_TESTGIT_FAILURE=1 git push --all &&
- cmp_marks origin
+ test_must_fail env GIT_REMOTE_TESTGIT_FAILURE=1 git push --all
)
'