t5561: drop curl stderr redirects
For a normal test run, stderr is already redirected to /dev/null by the test suite. When used with "-v", suppressing stderr is actively harmful, as it may hide the reason for curl failing. Reported-by: Jens Krüger <Jens.Krueger@frm2.tum.de> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Apr 3, 2018 at 10:01 UTC
fcd9d7096f0ca475b9926355d13ef7679ff99680
1 file changed
+2
-2
t/t5561-http-backend.sh
+2
-2
@@ -6,7 +6,7 @@ test_description='test git-http-backend'
6
start_httpd
7
8
GET() {
9
- curl --include "$HTTPD_URL/$SMART/repo.git/$1" >out 2>/dev/null &&
9
+ curl --include "$HTTPD_URL/$SMART/repo.git/$1" >out &&
10
tr '\015' Q <out |
11
sed '
12
s/Q$//
@@ -19,7 +19,7 @@ GET() {
19
POST() {
20
curl --include --data "$2" \
21
--header "Content-Type: application/x-$1-request" \
22
- "$HTTPD_URL/smart/repo.git/$1" >out 2>/dev/null &&
22
+ "$HTTPD_URL/smart/repo.git/$1" >out &&
23
tr '\015' Q <out |
24
sed '
25
s/Q$//