submodule: ensure that -c http.extraheader is heeded
commit0bbe731714e0042888eb99a8ff3f4cdf245ffce6
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 10 May 2016 07:08:56 +0000 (10 09:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 May 2016 19:56:28 +0000 (10 12:56 -0700)
tree50351999986a07b9c000898affab1d80809a12ba
parent8ab8d959c6bf2f111590a230c841c352b8cf6518
submodule: ensure that -c http.extraheader is heeded

To support this developer's use case of allowing build agents token-based
access to private repositories, we introduced the http.extraheader
feature, allowing extra HTTP headers to be sent along with every HTTP
request.

This patch verifies that we can configure these extra HTTP headers via the
command-line for use with `git submodule update`, too. Example: git -c
http.extraheader="Secret: Sauce" submodule update --init

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5551-http-fetch-smart.sh