@@ -196,8 +196,8 @@ test_expect_success 'GIT_TRACE_CURL redacts auth details' '
196
196
197
197
# Ensure that there is no "Basic" followed by a base64 string, but that
198
198
# the auth details are redacted
199
- ! grep "Authorization: Basic [0-9a-zA-Z+/]" trace &&
200
- grep "Authorization: Basic <redacted>" trace
199
+ ! grep -i "Authorization: Basic [0-9a-zA-Z+/]" trace &&
200
+ grep -i "Authorization: Basic <redacted>" trace
201
201
'
202
202
203
203
test_expect_success ' GIT_CURL_VERBOSE redacts auth details' '
@@ -208,8 +208,8 @@ test_expect_success 'GIT_CURL_VERBOSE redacts auth details' '
208
208
209
209
# Ensure that there is no "Basic" followed by a base64 string, but that
210
210
# the auth details are redacted
211
- ! grep "Authorization: Basic [0-9a-zA-Z+/]" trace &&
212
- grep "Authorization: Basic <redacted>" trace
211
+ ! grep -i "Authorization: Basic [0-9a-zA-Z+/]" trace &&
212
+ grep -i "Authorization: Basic <redacted>" trace
213
213
'
214
214
215
215
test_expect_success ' GIT_TRACE_CURL does not redact auth details if GIT_TRACE_REDACT=0' '
@@ -219,7 +219,7 @@ test_expect_success 'GIT_TRACE_CURL does not redact auth details if GIT_TRACE_RE
219
219
git clone --bare "$HTTPD_URL/auth/smart/repo.git" redact-auth &&
220
220
expect_askpass both user@host &&
221
221
222
- grep "Authorization: Basic [0-9a-zA-Z+/]" trace
222
+ grep -i "Authorization: Basic [0-9a-zA-Z+/]" trace
223
223
'
224
224
225
225
test_expect_success ' disable dumb http on server' '
@@ -474,10 +474,10 @@ test_expect_success 'cookies are redacted by default' '
474
474
GIT_TRACE_CURL=true \
475
475
git -c "http.cookieFile=$(pwd)/cookies" clone \
476
476
$HTTPD_URL/smart/repo.git clone 2>err &&
477
- grep "Cookie:.*Foo=<redacted>" err &&
478
- grep "Cookie:.*Bar=<redacted>" err &&
479
- ! grep "Cookie:.*Foo=1" err &&
480
- ! grep "Cookie:.*Bar=2" err
477
+ grep -i "Cookie:.*Foo=<redacted>" err &&
478
+ grep -i "Cookie:.*Bar=<redacted>" err &&
479
+ ! grep -i "Cookie:.*Foo=1" err &&
480
+ ! grep -i "Cookie:.*Bar=2" err
481
481
'
482
482
483
483
test_expect_success ' empty values of cookies are also redacted' '
@@ -486,7 +486,7 @@ test_expect_success 'empty values of cookies are also redacted' '
486
486
GIT_TRACE_CURL=true \
487
487
git -c "http.cookieFile=$(pwd)/cookies" clone \
488
488
$HTTPD_URL/smart/repo.git clone 2>err &&
489
- grep "Cookie:.*Foo=<redacted>" err
489
+ grep -i "Cookie:.*Foo=<redacted>" err
490
490
'
491
491
492
492
test_expect_success ' GIT_TRACE_REDACT=0 disables cookie redaction' '
@@ -496,8 +496,8 @@ test_expect_success 'GIT_TRACE_REDACT=0 disables cookie redaction' '
496
496
GIT_TRACE_REDACT=0 GIT_TRACE_CURL=true \
497
497
git -c "http.cookieFile=$(pwd)/cookies" clone \
498
498
$HTTPD_URL/smart/repo.git clone 2>err &&
499
- grep "Cookie:.*Foo=1" err &&
500
- grep "Cookie:.*Bar=2" err
499
+ grep -i "Cookie:.*Foo=1" err &&
500
+ grep -i "Cookie:.*Bar=2" err
501
501
'
502
502
503
503
test_expect_success ' GIT_TRACE_CURL_NO_DATA prevents data from being traced' '
0 commit comments