t5551: make the test for extra HTTP headers more robust
[gitweb.git] / t / t5551-http-fetch-smart.sh
index e44fe72c7aa4d670a6796a5c342e8e131fac6a8d..43b257e7fd20e8e2e9f37aab74e863765578de29 100755 (executable)
@@ -283,7 +283,8 @@ test_expect_success EXPENSIVE 'http can handle enormous ref negotiation' '
 '
 
 test_expect_success 'custom http headers' '
-       test_must_fail git fetch "$HTTPD_URL/smart_headers/repo.git" &&
+       test_must_fail git -c http.extraheader="x-magic-two: cadabra" \
+               fetch "$HTTPD_URL/smart_headers/repo.git" &&
        git -c http.extraheader="x-magic-one: abra" \
            -c http.extraheader="x-magic-two: cadabra" \
            fetch "$HTTPD_URL/smart_headers/repo.git"