]> git.ipfire.org Git - thirdparty/git.git/commit
http: don't always add Git-Protocol header
authorBrandon Williams <bmwill@google.com>
Thu, 15 Mar 2018 17:31:39 +0000 (10:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Mar 2018 19:01:09 +0000 (12:01 -0700)
commit884e586f9ef46406263720523377298a90b41065
treea0820c4e8d8a85031c73f9d30ec92213001e2450
parent8ff14ed4127decbee3116aba59d7f8f897c4fe3b
http: don't always add Git-Protocol header

Instead of always sending the Git-Protocol header with the configured
version with every http request, explicitly send it when discovering
refs and then only send it on subsequent http requests if the server
understood the version requested.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http.c
remote-curl.c