From 9e10e0b9a01cf2f611f1ef2330e27a0822cf3de6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Torsten=20B=C3=B6gershausen?= Date: Thu, 5 Jun 2014 23:36:21 +0200 Subject: [PATCH] t5551: fix the 50,000 tag test MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The first version of test 23 did simply check that no output was sent to the standard error stream. With 5e2c7cd2 (t5551: do not use unportable sed '\+', 2013-05-12), we started to also verify that the expected tags were actually cloned. Since 68b939b2 (clone: send diagnostic messages to stderr, 2013-09-18), "git clone" shows "Cloning into 'too-many-refs'" to the standard error stream (it used to do so to the standard output), causing the test to fail. Signed-off-by: Torsten Bögershausen Signed-off-by: Junio C Hamano --- t/t5551-http-fetch.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/t/t5551-http-fetch.sh b/t/t5551-http-fetch.sh index 55a866af80..ea95aa389e 100755 --- a/t/t5551-http-fetch.sh +++ b/t/t5551-http-fetch.sh @@ -214,8 +214,7 @@ test_expect_success EXPENSIVE 'create 50,000 tags in the repo' ' ' test_expect_success EXPENSIVE 'clone the 50,000 tag repo to check OS command line overflow' ' - git clone $HTTPD_URL/smart/repo.git too-many-refs 2>err && - test_line_count = 0 err && + git clone $HTTPD_URL/smart/repo.git too-many-refs && ( cd too-many-refs && test $(git for-each-ref refs/tags | wc -l) = 50000 -- 2.11.4.GIT