summaryrefslogtreecommitdiff
path: root/t/t5561-http-backend.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2018-04-03 14:01:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-04-05 07:21:39 (GMT)
commitfcd9d7096f0ca475b9926355d13ef7679ff99680 (patch)
treee34742a8d4dde59f2ab14f7c21094417a93588cc /t/t5561-http-backend.sh
parentd32eb83c1db7d0a8bb54fe743c6d1dd674d372c5 (diff)
downloadgit-fcd9d7096f0ca475b9926355d13ef7679ff99680.zip
git-fcd9d7096f0ca475b9926355d13ef7679ff99680.tar.gz
git-fcd9d7096f0ca475b9926355d13ef7679ff99680.tar.bz2
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>
Diffstat (limited to 't/t5561-http-backend.sh')
-rwxr-xr-xt/t5561-http-backend.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t5561-http-backend.sh b/t/t5561-http-backend.sh
index 90e0d6f..6167563 100755
--- a/t/t5561-http-backend.sh
+++ b/t/t5561-http-backend.sh
@@ -6,7 +6,7 @@ test_description='test git-http-backend'
start_httpd
GET() {
- curl --include "$HTTPD_URL/$SMART/repo.git/$1" >out 2>/dev/null &&
+ curl --include "$HTTPD_URL/$SMART/repo.git/$1" >out &&
tr '\015' Q <out |
sed '
s/Q$//
@@ -19,7 +19,7 @@ GET() {
POST() {
curl --include --data "$2" \
--header "Content-Type: application/x-$1-request" \
- "$HTTPD_URL/smart/repo.git/$1" >out 2>/dev/null &&
+ "$HTTPD_URL/smart/repo.git/$1" >out &&
tr '\015' Q <out |
sed '
s/Q$//